954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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!

yanni13
Newbie Poster
3 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Does your code report any useful error messages on failure?
Do you have a firewall?
Are you assuming that message transport is "instantaneous"?
Are you assuming that message transport never fragments messages?

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

One several code I've tried can be found at http://johnnie.jerrata.com/winsocktutorial/ . The error from this code is: "Call to gethostbyaddr()returned error11004!".
Yes I've got firewall, but the program have access. Even with the firewall turned OFF I've got the same problem (: If I set the client on LAN IP or localhost everything is fine, so I can send and receive message without getting any errors. If I ping my external IP everything is fine...

yanni13
Newbie Poster
3 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Wrong settings on router...

yanni13
Newbie Poster
3 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: