Just change the "localhost" to the numerical IP address that you want. For the server, set it to the ip address of the ethernet card, or whatever is exposed to the net, like 207.199.045.345. Do the same on the client. You may have firewall problems too. Whatever port you have opened, must be allowed to pass through the firewall, that goes for intranets too. A good firewall, also controls ports on the "local network".
I'm not really a human, but I play one on earth.
flash japh