yfleury Active Member Licensed User Longtime User Aug 23, 2019 #1 Hi! All I have a jrdc2 server at home. On my wifi, I use this this code to connect my app to jrdc2 server. B4X: Private const rdcLink As String = "http://192.168.0.6:17178/rdc" Is it a way to switch automatically from my wifi ip to internet ip (my home) when I am outside. I open port on my router and I can reach my jrdc2 server when I change ip address manually
Hi! All I have a jrdc2 server at home. On my wifi, I use this this code to connect my app to jrdc2 server. B4X: Private const rdcLink As String = "http://192.168.0.6:17178/rdc" Is it a way to switch automatically from my wifi ip to internet ip (my home) when I am outside. I open port on my router and I can reach my jrdc2 server when I change ip address manually
OliverA Expert Licensed User Longtime User Aug 23, 2019 #2 Always use the outside IP address even if you are on your WiFi? Upvote 0
I inakigarm Well-Known Member Licensed User Longtime User Aug 23, 2019 #3 You can test your Android device LocalIP with B4X: ServerSocket.GetMyIp If you get that this localIP is a private IP, switch to rdclink private IP; otherwise, use públic rdclink Upvote 0
You can test your Android device LocalIP with B4X: ServerSocket.GetMyIp If you get that this localIP is a private IP, switch to rdclink private IP; otherwise, use públic rdclink
yfleury Active Member Licensed User Longtime User Aug 23, 2019 #4 OliverA said: Always use the outside IP address even if you are on your WiFi? Click to expand... When I am at home, I can't access my home server by internet when I use wifi. inakigarm said: You can test your Android device LocalIP with B4X: ServerSocket.GetMyIp If you get that this localIP is a private IP, switch to rdclink private IP; otherwise, use públic rdclink Click to expand... I will try that Thank all Upvote 0
OliverA said: Always use the outside IP address even if you are on your WiFi? Click to expand... When I am at home, I can't access my home server by internet when I use wifi. inakigarm said: You can test your Android device LocalIP with B4X: ServerSocket.GetMyIp If you get that this localIP is a private IP, switch to rdclink private IP; otherwise, use públic rdclink Click to expand... I will try that Thank all
yfleury Active Member Licensed User Longtime User Aug 23, 2019 #5 On wifi I have this in log B4X: leserveur.GetMyIP 192.168.1.147 leserveur.GetMyWifiIP 192.168.1.147 On mobile internet I have this in log B4X: leserveur.GetMyIP fe80::347b:caff:febb:203e%dummy0 leserveur.GetMyWifiIP 127.0.0.1 fe80::347b:caff:febb:203e is it an ipv6? Upvote 0
On wifi I have this in log B4X: leserveur.GetMyIP 192.168.1.147 leserveur.GetMyWifiIP 192.168.1.147 On mobile internet I have this in log B4X: leserveur.GetMyIP fe80::347b:caff:febb:203e%dummy0 leserveur.GetMyWifiIP 127.0.0.1 fe80::347b:caff:febb:203e is it an ipv6?
DonManfred Expert Licensed User Longtime User Aug 23, 2019 #6 yfleury said: fe80::347b:caff:febb:203e is it an ipv6? Click to expand... yes Upvote 0