Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    0

    Default Chat Over Internet Not Working?

    I have built a chat program that uses sockets and server sockets. The program works using 1 computer, and works using multiple computers that are on the SAME network.

    I am having problems connecting to my server socket when the client computer is on a different network.

    I have searched about this and could not find to much on my problem. Is there some component that I am missing for internet communication? Any help would be appreciated!

  2. #2
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    You will have to expose your public ip and the particular port to the internet and forward the traffic to your private IP of the computer that is running the server.

    Google how to do "Port Forwarding" for your particular router.
    Last edited by mrmatt1111; 12-03-2010 at 12:25 AM.
    My Hobby Project: LegacyClone

  3. #3
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    0

    Default

    I made the port forwarding changes to my router but the client still can't connect. Do I have to do anything to the router on the client side?

  4. #4
    mrmatt1111's Avatar
    mrmatt1111 is offline Senior Member
    Join Date
    Aug 2009
    Location
    San Jose, CA, USA
    Posts
    320
    Rep Power
    6

    Default

    With your client, are you connecting to the public IP of the server?

    You can google your public IP: "what is my IP"

    When you get that working you can also look into setting up a dynamic DNS that will auto update your public IP address when it changes.

    Edit: you don't need to worry about the client, just the server.
    Last edited by mrmatt1111; 12-03-2010 at 07:18 PM.
    My Hobby Project: LegacyClone

Similar Threads

  1. RMI through Internet.???
    By bach_meoden in forum Networking
    Replies: 8
    Last Post: 05-19-2010, 03:48 PM
  2. My Web App on Internet
    By orion_mcl in forum Advanced Java
    Replies: 1
    Last Post: 03-14-2010, 10:13 PM
  3. Simple TCP chat application not working for me
    By sundarrajan in forum New To Java
    Replies: 0
    Last Post: 08-13-2009, 09:31 AM
  4. Replies: 7
    Last Post: 03-31-2009, 02:29 PM
  5. Replies: 8
    Last Post: 05-28-2008, 08:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •