Hi,
I have got the same problem. I configured my Sun Application Server 9 to listen on localhost port only (127.0.0.1), because I connect my laptop to many differents networks (university, home) and I don't want to publish application server to the world.
Now I am dealing with Sun's tutorial "firstwebcup". Everything was ok when application server had been listening on all ip ports. My troubles began after I had reconfigured it to listen 127.0.0.1 port only .
Now when I connect to deployed web service through the browser I get XML, that shows that web service schema is available under hard coded address "http://192.168.130.4:8080/..." - where 192.168.130.4 is IP address in my home network.
When I try to get connection from
ejb to web service, logs show that it is unable to connect to "http://192.168.230.155:8080/...", where 192.168.230.155 is IP address from DHCP at the university (I have deployed web application when I was connected to the network of my university).
In this project I have used "localhost" everywhere, for each service. It seems that NetBeans or
Java Application Server resolves localhost to IP address of my network card.
Now, as you know why replacing endpoint with ipaddress is a problem, could you help us?