Oops Null Pointer

Java programming related

Accessing an Eclipse Server using IP address

A while ago I got stuck after upgrading to Eclipse 3.5 – suddenly I couldn’t access my server using the IP address or host name of the machine, but localhost and worked fine.

For me this was a bigger issue as my host was a virtual machine (vmware) and I wanted to access the server from outside that virtual machine (in this case for testing a GWT app with different versions of IE).

Turns out that prior to Eclipse 3.5 the server launch config didn’t set the –host property automatically. So even if you put localhost as the in the “host name” field in the server configuration, you could still access the server using the hosts IP address.

Eclipse 3.5 now adds a –host property automatically, causing any old configs to now only serve to localhost.

To fix this set the “host name” field (or –host property in the launch config) to (to listen on all interfaces). Back to work again…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: