I am trying to configure a client / server model with android clients and a Java server. The connection is through TCP.
I have all my code working when the Android device is running in WIFI, however whenever I connect to a wireless network (e.g. 3g, 4g), the sockets refuse to connect.
I read about NAT traversal, but I donβt know where to start when you follow the necessary steps to allow the connection.
NOTE: my server has a static IP address
source share