Help getting remote clients to work

Hello, I have a toy example very like the SworldWorld program ‘working’ - the server runs fine, and clients programs connect when both are run on the same machine. Recently I got my friend to try and connect from their machine, but the program would close seconds after starting and no user/password box would ever pop up. I thought that this would be due to firewalls or something. But:

I have disabled my firewall, and even a client on the same LAN can’t connect! I know it is not a port issue since I can reach, say, a web server running on the same port I run the game server on.

Am I doing something really stupid?

Thanks for any help
Greg Scott

I’m am wondering if the problem is in a combination of the parameters I use for FakeDiscovery (client) and deploy.xml (server):

I have just got another client to connect via the LAN by ensuring the host field in FakeDiscovery (192.168.0.99) is used as the host field in the deploy (192.168.0.99), as opposed to 127.0.0.1. Why is this, and how can I get it to work for remote clients?

As you can tell my networking knowledge is limited at best.

Okay sorry but I seem to have ‘fixed’ the problem, sorry! I need to vary the address used depending on whether the client is LAN or WAN-side

Yes, the address is the address of the host.

127.0.0.1 is only for when client and sevrer are on the same machine,.

If you have a NAT firewall then the addresses will chnage on the WAN side from the LAN side.