If your device is inside lan via a Wi-Fi connection, you are behind your Internet gateway. Therefore, when you want to access the server application on your mobile device from the Internet, you need to configure port forwarding on your router from around the world on the server port to your mobile device with the same port.
Or switch using a mobile device to the umts or lte connection, find out your IP address and call it with the client for your server application.
There is a web page that shows your IP address. Try google for "what is my ip".
source
share