Today I encountered a strange phenomen on Windows Vista. I was implementing a JAX-WS web service and trying to bind an endpoint with the JDK6 built-in JAX-WS.

Endpoint endpoint = Endpoint.publish("http://localhost:8090/queryservice", endpointImplementation);

I got this strange

1 Address family not supported by protocol family: bind

execption and did a search for this. Fortunately very recently somebody else had the same issue.

The workaround is to either update your System32\drivers\etc\hosts file, replace “::1 localhost” with “ localhost” or use as a replacement for localhost when creating the socket.