Jump to content

Leo2797

Members
  • Posts

    7
  • Joined

  • Last visited

Leo2797's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. wow thanks, this actually helped, I've increased the timeout to 10 seconds and it successfully connected, thanks.
  2. I tried connecting via telnet or just simply typing in the ip:port in my browser and a connection was received at the server side
  3. it's a 3rd party program at the server side, all it does is print a connection succeed in the log when I connect, I tried connecting with telnet and it connects fine then I tried doing this with autoit but nothing happens on the server side, I've also tried using the exact same code while running the 3rd party app on my local machine and connected with 127.0.0.1 and it worked with autoit so I was wondering if there's something I need to do on the server side to allow autoit to connect #include <Misc.au3> TCPStartup() TCPConnect("255.255.255.0", 16000) ;not the real ip obviously Sleep(100) TCPShutdown()
  4. but why am I able to execute TCPConnect to an ip in my local network (192.168.1.2) for example but not a real ip address also if I need to keep a TCPAccept script open do I need to include my own IP or can I have it accept any ip ever?
  5. So I have an IP and a port that I'm trying to TCPConnect to but it always returns a timeout error (10060) I tried to run a telnet commant to the same ip port and the listener did get a connection getting sent on the server-side, I even tried typing in the IP:port in my browser and a connection was received but with TCPConnect the server doesn't receive anything and TCPConnect returns a 10060 error is there anything I'm missing? am I supposed to run an autoit script on the server side with TCPAccept with my machine's ip? any ports I need to allow in firewall? everything seems to be working except autoit's TCPConnect, I also tried running the same script onto a computer in the same network and it worked it just doesn't seem to work with real IPs
  6. I'm not facing any, just trying to make it receive data as fast as possible so I was wondering if doing something like TCPRecv($receive, 1000000, 1) where the buffer size is large would make it quicker or am I actually slowing it down by doing so and should narrow it down to like 1024 maybe
  7. I'm trying to listen to a certain connection and wait for a packet that contains "C8420000", is there a faster way I could do this? am I using StringInStr in a correct way? does adding a huge buffer size make room for the amount of bytes it can read per single read or does it make it slower? is opening one connection for receive and one for send a good idea or can I use the same socket for receiving and sending (I'll be sending a packet after doing some work on the received data so I need a send socket) any tips would be appreciated, thanks. #include <Misc.au3> TCPStartup() $receive = TCPConnect("127.0.0.1", 16000) $send = TCPConnect("127.0.0.1", 16000) While 1 $data = TCPRecv($receive, 1000000, 1) if StringInStr($data, "C8420000", 2) Then ;do stuff with $data EndIf WEnd
×
×
  • Create New...