This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 8836

Do you have the XP Internet Connection Firewall running?

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Server/Client On Separate Machines
Similar Threads
how to send messages from server to client initiatively?
Read Client IP Address behind Proxy
Test Clarifcation
iam getting java.rmi.ConnectException
Chat Client on other network localization IP address likely issue