I'm developing an application that need an internet permission all the time. When there is a WIFI connection the application can connect to my server (if they're in the same network) actually I have 2 question..
1) Lets say that the server is connected to network A and the client is connected to Network B (on WIFI) why it doesn't show me on the server side the message that I send? I made a simple project that when the client is connecting to the server it send "hello" to the server, the server read it and tell me the address of the client and the message (print to the console), it works fine when both server and client are at the same Network.. but when they're in different networks it doesn't work.
2) How a 3G application is working? how can I connect the client who uses a 3G network to my server?