Roshith Posted January 10, 2011 Share Posted January 10, 2011 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 Link to comment Share on other sites More sharing options...
computergroove Posted January 11, 2011 Share Posted January 11, 2011 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 Link to comment Share on other sites More sharing options...
Roshith Posted January 11, 2011 Author Share Posted January 11, 2011 How do we open up a port in the firewall? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now