I deploy a web service in cloud foundry provider. I include a JSP file to show me the IP address of the server by using:
inetAddress = InetAddress.getLocalHost();
I got this response:
6dlne5n0dnv/10.254.0.42
However, I cannot ping 10.254.0.42
this address. So, I cannot access to my web service through this address. How can I obtain the "public" address please ?