Sign in to follow this  
Robinhood

What's wrong?

Recommended Posts

I made a simple program just for testing(very simple,TCP). while working well on LAN,it doesn't work on the Internet. I sure I can ping the server and there is no firewall installed on the server and the clients.So my question is why the program doesn't work? There are some parts of my test program //Server m_pSocket->Create(lpszAddress,nPort + 700) //Client m_pSocket->Connect(lpszAddress, nPort + 700)

Share this post


Link to post
Share on other sites
these "parts" are too short, we can't figure out what you are doing, if we get only two lines...

can you post your call to bind()?

try starting the server, and then connect to the server with telnet over the internet (telnet comes with your operating system). is telnet able to open the connection? does the server receive the new connection? can it receive data?

Chris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this