jQuery in Action, 3rd edition
The moose likes Sockets and Internet Protocols and the fly likes Server/Client On Separate Machines Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Server/Client On Separate Machines" Watch "Server/Client On Separate Machines" New topic

Server/Client On Separate Machines

Daniel Simpson
Ranch Hand

Joined: Sep 02, 2004
Posts: 181
Hi, I had a question about a simple messaging client/server app that I have been working out of from the Deitel Java book. When I run the client and server on the same computer (using localhost), it works just fine. My question is, I have tried running it on two separate computers and it doesn't seem to work. I have the server running on my computer and I had the client running on another computer with a different ip address. Do I need to edit some permissions on my computer running the server or something like that? I typed in the ip address of my server's location in the command line of my client class, but it never connects. I get this error:
Any ideas? Any help is greatly appreciated!
[ December 21, 2004: Message edited by: Daniel Simpson ]

SCJP 1.4<br />SCJD 1.4
Joe Ess

Joined: Oct 29, 2001
Posts: 9189

Do you have the XP Internet Connection Firewall running?

[How To Ask Questions On JavaRanch]
Daniel Simpson
Ranch Hand

Joined: Sep 02, 2004
Posts: 181
I sure did, and I changed it and now it works! Thank you so much!
I agree. Here's the link: http://aspose.com/file-tools
subject: Server/Client On Separate Machines
It's not a secret anymore!