I can easily publish web services using javax.xml.ws.Endpoint. endpoint.publish(getURL()); I would like to know why I have to use real IP to publisg the webservice to remote. In otherwords.
when I use the URL httpp://localhost:1970/XXXService
XXService could not be connected from remote machines.
But when httpp://47.168.96.47:1970/XXXService
is used it could be connected from any machine remotely or locally.