aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Client Server Chat Network Issue 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 "Client Server Chat Network Issue" Watch "Client Server Chat Network Issue" New topic
Author

Client Server Chat Network Issue

Darren Brooks
Ranch Hand

Joined: Dec 29, 2005
Posts: 31
Playing with the Head First Java Chat program, I have run into a network problem: How do I run the Chat Server on my computer, and allow my roommate to run the client on her computer, so we can chat?

I have a motorola router on a wireless network with two desktop computers running Windows XP. Each has its own internal IP address.
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
If your two computers are connected ..
There is no problem ...

1) Run the server on your friend's machine
2) Connect to that server through the client from your machine ..
(i.e connect to your friend's ip )

You can learn more about it here

Lesson about sockets
Darren Brooks
Ranch Hand

Joined: Dec 29, 2005
Posts: 31
I have tried running the server on my machine, and then connecting to my internal IP address via her machine. It does not connect. My goal is to run the server on my machine, and have friends from outside my private network connect, as well.

I'm having similar problems using a program which opens a port. My friend in another country is trying to connect, but cannot. I have port forwarded the port number, but it still won't connect. I feel this is the same issue as I am having with the server/client java program.

Are there any thoughts about what might be the issue?
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
Really don't know what is the problem ...
Have tried the server-client program with both LAN connection and wireless connection .. Was working perfectly ....

Are you able to ping the other machine ..
Go to command prompt and type
ping 192.168.0.1 (ip addr of your friend) ..
[ November 13, 2008: Message edited by: vanlalhmangaiha khiangte ]
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8971
    
    9

Does the 'server' have a firewall?


[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Client Server Chat Network Issue