Jump to content
Sign in to follow this  


Recommended Posts


I come accross a problem while sending data via TCP. I have no idea why.

I'm running the script which is in TCPRecv() help example on Machine A. And I run another script from Machine "B" to send data to Machine A using TCPConnect("A's ipaddress", 33891) and TCPSend($connectedSocket, "Data"). Since Machine A & B are on the same LAN, 95 % of the time, the message is received.

But When I try sending the message from Machine B to Machine C which is located in another country, many times It get stuck with the @error from TCPRecv() function. But ConnectedSocket returned its value. And a very few times, the data is received.

I understand this is not a problem with the script. But Am, I missing something? Or is this due to packet loss, if so , is there any way to make this reliable?

Also, I have no idea how TCP work. Any help on this will be very helpful

Thanks in advance


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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...