I want to get the internet(public) ip address and use it in my java app. When I use "ipconfig" or "netstat" (shell commands) or InetAddress.getLocalHost() or even NetworkInterface.getNetworkInterfaces() the router(system) doesn't return the internet ip, instead returns the local address.
However when I connect to router config page using a browser the internet ip address is shown there. How can I get the internet ip address in my java app?