[SOLVED] Client/Server between two machines
I'd like to set up a ServerSocket to listen for connections on a UNIX box A. On UNIX box B, I'd like to set up a Socket to connect to the server that I set up on box A. But I'm not sure how to do that on separate machines. They're both on the same network at work. I can easily have the client connect to the server when they're both on the same machine, but I don't know the SocketAddress to use in the Socket.connect() method when they're on separate machines.
I tried using InetAddress' static methods to grab the host address, but they both give 127.0.0.1.