Sign in to follow this  
Followers 0
Roshith

TCP

3 posts in this topic

Hi,

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

Roshith

Share this post


Link to post
Share on other sites



Sounds like a firewall to me. If it is then you need to open a port in your firewall. Maybe on your side or the other computer.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites

How do we open up a port in the firewall?

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  
Followers 0