0

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 ?

ottomeister
  • 5,000
  • 2
  • 21
  • 26
Mehdi
  • 2,060
  • 6
  • 35
  • 47

0 Answers0