Problem accessing lan from some networks

Started by cobrax2, July 12, 2024, 10:47:50 AM

Previous topic - Next topic
Hi
I use openvpn to connect from my android device to home network. Internet is working great, no issues.  But when i go to some other zones in the country, or to another country, i can connect fine to the server, internet is working, but lan is not accessible for some reason. Doesnt matter if i use gsm or another wifi, it just doesnt work. I come in the relative area of my home, and using the same device, same gsm, it doesnt see it. What could be the problem? Thanks!

The mobile network you are using could have an address conflict with your LAN.

Check the mobile or WiFi IP address your device uses.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

July 12, 2024, 12:12:05 PM #2 Last Edit: July 12, 2024, 12:13:50 PM by cobrax2
You mean that the gsm or wifi that i connect to have the same 192.168.10.0 network as mine? And then, when i connect to vpn it gets to 192.168.50.0 (assigned by the vpn) and then the route to my home 192.168.10.0 gets confused to the local gsm?
If so, what can i do?
Thanks

Quote from: cobrax2 on July 12, 2024, 12:12:05 PM
You mean that the gsm or wifi that i connect to have the same 192.168.10.0 network as mine? And then, when i connect to vpn it gets to 192.168.50.0 (assigned by the vpn) and then the route to my home 192.168.10.0 gets confused to the local gsm?

Yes, that's what I mean.

Quote from: cobrax2 on July 12, 2024, 12:12:05 PM
If so, what can i do?

First check if that is really the cause of the problem. If it is, nothing much but pick a less common address range for your home network. I would be surprised to find RFC1918 addresses in a GSM network, honestly - should be CGNAT (100.64...) instead. But in hotel or airport WiFi - perfectly common to have 192.168.x.0/24.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

yes, when on gsm, i usually am on 10.0.0.0
so what else could be the issue if the private address is not the problem?

I don't use Android, so I have no idea how close to the system you can get. I'd check IP addresses and routes first, i.e. what gets routed through the VPN when the tunnel is active.

Have you ever tried the same OpenVPN connection from a laptop?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Yes, tried with windows and it did the same

Then get the output of "ipconfig /all" and "route print ..." (don't know if that takes any extra parameters) next time that happens, and report back.  :)
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Ok, thank you.
For now, i've changed my lan to 10.9.99.0. Maybe it will work better