users@jax-ws.java.net

Re: Endpoint.publish() on another computer

From: Daniel Kasmeroglu <Daniel.Kasmeroglu_at_Kasisoft.net>
Date: Thu, 18 Jan 2007 01:20:04 +0100

Doug Kohlert schrieb:
> Kasimir,
> 127.0.0.1 and 'localhost' are only used to reference the local machine;
> they cannot be used to reference another machine. To reference another
> machine, you MUST use either the ip address or the hostname of the
> target machine as you have discovered. There is really nothing to
> explain here except that 127.0.0.1 and 'localhost' always reference the
> local machine.
>
This is clear. If I would try to bind a socket on another machine I would get a BindException.
My confusion is that I've exchanged '127.0.0.1' with '192.168.2.203'. The first one is more generic
but the whole stuff only worked with the real IP.

Ciao
Kasimir