How can my LAN-Chat work over INTERNET?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • clawsy
    New Member
    • Nov 2009
    • 2

    How can my LAN-Chat work over INTERNET?

    I develop a chat (server and client) using Sockets. It's working on LAN but when I try to connect the client to the server using my public IP address it says it cannot connect to that address. For example: 192.168.1.66 is ok but 92.84.65.32 (public) is not, client cannot connect to this address. My address is public - a friend pinged my address successfully. You find everywhere examples and code for chat applications - but only over local network.
    What's the problem? How can my chat work over the Internet? (I can post code if necesarry).
    Please help me. I need this so much!
  • sukatoa
    Contributor
    • Nov 2007
    • 539

    #2
    Try to test here if the modem forwards the request to your machine... if that port is closed

    try to read and configure port forwarding in your modem

    Comment

    • clawsy
      New Member
      • Nov 2009
      • 2

      #3
      Thank you! Indeed I tested it and all the ports I tested are closed... I have a router and a modem that I use. I tried to forward the port from router... but I couldn't. See here what settings I tried: http://www.coderanch.com/t/472724/So...t-working-over

      Comment

      • sukatoa
        Contributor
        • Nov 2007
        • 539

        #4
        try to set it up again, (experiment)

        an updated private IP address
        use port from 3000+ and above

        if you use Socket Type=TCP, if you use DatagramSocket Type=UDP

        public port = private port
        No comment
        Enable

        Save the settings
        Reboot your router for 10 seconds
        Unplug the utp cable/disable wireless device for 10 seconds, and connect it again...

        try to observe if it is working.

        Comment

        Working...