Hello fellow stackoverflowers!
I'm currently developing this app that should be able to communicate device-to-device. I found this cool guide on how to use Socket for that kind of communication. And it worked! ..ish.
My problem is that it only works while the two devices is connected to the same Wi-Fi. Which sucks... So if device-A is the server & device-B is the client, and I use the internal-IP address (like, 192.168.1.blahblahbla), it works.
-That's awesome, then why're complaining bro?
Well, I want to be able to connect to device-A's external-IP, the real IP (like 94.254.blabla.blabla). So my question to you guys, is how do I do that? How can I do something that can make this happen?
All help will be appriciated, thanks in advance.
Sincerly, Måns.