Jax-ws java.net.ConnectException: Connection refused
问题 I'm experiencing an odd networking problem connecting to a web service running on glassfish from a java client running on tomcat using JAX-WS (Metro). Here's the scenario... Both servers are running on my local machine. If I configure the client to connect to the WS endpoint using 127.0.0.1, the request works fine. If I configure the client to connect to the WS endpoint using my IP address, I immediately get java.net.ConnectException: Connection refused. The same thing happens if I use my