• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Client Server Chat Network Issue

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does the 'server' have a firewall?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic