CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2009
    Posts
    7

    TCP Client Server issue

    Hi, I've got two programs (client and server) using sockets. The program are working fine if I set the client IP to local host (127.0.0.1) or the LAN IP (192.168.0.3), but can't connect if the IP is set to external Internet IP (92.24.xxx.xxx).
    Anyone have an ideea, please?
    Thanks!

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: TCP Client Server issue

    Well, it sounds that something is wrong at least in one of these two programs.
    And if you'd like to get some more useful help - post a bit more useful description about these programs and a problem you have...
    Victor Nijegorodov

  3. #3
    Join Date
    Jul 2009
    Posts
    7

    Re: TCP Client Server issue

    One of the several code I've tried can by found here: http://johnnie.jerrata.com/winsocktutorial/ and the error I get is: "Call to gethostbyaddr()returned error11004!". I've tried to use the server with another client (and the other way around) and I've got the same problem... If I set the client on LAN IP or local IP Ican send and receive the message without any errors, but with external IP doesn't work. Even with firewall turned OFF. If I ping my external IP everything is fine....

  4. #4
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,430

    Re: TCP Client Server issue

    And ... ???
    Victor Nijegorodov

  5. #5
    Join Date
    Jul 2009
    Posts
    7

    Re: TCP Client Server issue

    ...and that means I can't connect to another computer...

  6. #6
    Join Date
    Jul 2009
    Posts
    7

    Re: TCP Client Server issue SOLVED

    Wrong settings on the router...

Tags for this Thread

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured