Results 1 to 2 of 2
- 11-14-2008, 11:29 PM #1
Member
- Join Date
- Oct 2008
- Posts
- 45
- Rep Power
- 0
[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.
- 11-14-2008, 11:49 PM #2
Member
- Join Date
- Oct 2008
- Posts
- 45
- Rep Power
- 0
Similar Threads
-
client-server app
By shwein in forum NetworkingReplies: 3Last Post: 10-14-2008, 05:20 PM -
Datagram Client and Server, client timer question
By saru88 in forum NetworkingReplies: 1Last Post: 10-05-2008, 03:12 PM -
client/server palindrom
By Rgfirefly24 in forum New To JavaReplies: 0Last Post: 04-28-2008, 02:19 AM -
JDK versions on web server and client machines
By sunjavaboy in forum New To JavaReplies: 1Last Post: 03-21-2008, 04:59 AM -
Identify Client in Socket Client Server Application
By masadjie in forum NetworkingReplies: 1Last Post: 12-20-2007, 09:18 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks