Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for offline functionality... #184

Open
Benjamin8obadiah opened this issue Dec 31, 2024 · 10 comments
Open

add support for offline functionality... #184

Benjamin8obadiah opened this issue Dec 31, 2024 · 10 comments

Comments

@Benjamin8obadiah
Copy link

i know the program technically runs on lan but whenever my router goes offline it no longer works (host and target still connected to network). there are some online requirements. can these be removed?

@ClassicOldSong
Copy link
Owner

There isn't any online requirements. Can you describe what the symptoms are when it's not working and what's your client?

If you added your host manually using its public IP then when your router goes offline it can't see that IP anymore. In that case it won't connect, you'll just need to add your host using its LAN address again.

@Benjamin8obadiah
Copy link
Author

There is one wifi 6 router, plugged into Internet source. The PC is wired with Ethernet to the router, and the target (s24 ultra smartphone) is connected wirelessly.

This setup works, while the router is supplied internet. As soon as the routers internet supply goes out, the stream cuts off with this error code;

The connection was terminated. Error code: -1

The phone remains connected to the router, as it's set to "remain connected without Internet"

As I'm typing this I think I figured out what the problem is. The PC is disassociating itself from the Ethernet that's plugged into it. It requires an internet connection from the plug, and when it doesn't have one, it just disconnects. And doesn't remain connected on lan.

I'm sure there's a simple setting I just don't know about to fix this. One similar to the android settings to remain connected while offline.

@ClassicOldSong
Copy link
Owner

Are you using IPv6 or IPv4? If you're using the v6 address assigned from your ISP provider, then disconnecting from WAN could cause problems. If you setup IPv4 and use NAT on your router, there should be no problems.

@Benjamin8obadiah
Copy link
Author

Are you using IPv6 or IPv4? If you're using the v6 address assigned from your ISP provider, then disconnecting from WAN could cause problems. If you setup IPv4 and use NAT on your router, there should be no problems.

i have ipv4 only. wdym by use NAT? do i need to setup port forwarding for this to work?

@ClassicOldSong
Copy link
Owner

https://en.wikipedia.org/wiki/Network_address_translation

Usually you don't need to manually set NAT on your router if you're using IPv4. Can you long press on the computer icon on your client and check its detail, make sure it is using a local IP address?

Also how does the WAN go out? Pulling the cable or disconnecting via the router's admin console?

@kayti
Copy link

kayti commented Dec 31, 2024

Check if Your phone is REALLY trying to use Your WiFi (example ping router form it). I had many cases where phone was "connected" to wifi without internet but couldn't access LAN anyway because it was directly switching to Mobile network.

@Benjamin8obadiah
Copy link
Author

https://en.wikipedia.org/wiki/Network_address_translation

Usually you don't need to manually set NAT on your router if you're using IPv4. Can you long press on the computer icon on your client and check its detail, make sure it is using a local IP address?

computer is using an ip like 192.168.x.x.

Also how does the WAN go out? Pulling the cable or disconnecting via the router's admin console?

pulling the cable

@Benjamin8obadiah
Copy link
Author

Check if Your phone is REALLY trying to use Your WiFi (example ping router form it). I had many cases where phone was "connected" to wifi without internet but couldn't access LAN anyway because it was directly switching to Mobile network.

i confirm that my phone is still connected to the router. i log into the routers web interface, and can control it. mobile data is off.

i can do that from my phone (target device) but cant do it from the host pc.

the usual ethernet logo at the bottom right of windows 11 is replaced with the no internet logo.

@Benjamin8obadiah
Copy link
Author

Benjamin8obadiah commented Dec 31, 2024

the ethernet controller, by "Allow the computer to turn off this device to save power" isnt clicked.

@Wordsmith9091
Copy link

@Benjamin8obadiah This sounds a lot like your PC, for some reason, is disconnecting from the LAN entirely when the router loses access to the WAN. If you can't access the router administration page from your PC when the WAN is out, but you can from other devices like your phone, that narrows down the problem to the connection between the PC and Router.

You may want to try pinging your PC from your phone (there are plenty of terminal or ping apps available for phones) or otherwise reaching it with something other than Apollo/Sunshine (do you run Plex? Jellyfin? Any other service on your PC you'd normally be able to reach from the phone?). I'd bet $10 that you can't reach those, either, and that this isn't an Apollo issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants