Leo2797 Posted December 12, 2019 Share Posted December 12, 2019 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 Link to comment Share on other sites More sharing options...
Musashi Posted December 12, 2019 Share Posted December 12, 2019 24 minutes ago, Leo2797 said: ... am I supposed to run an autoit script on the server side with TCPAccept with my machine's ip? The Help for TCPConnect (see examples) provides the following information : ; I am the client, start me after the server! (Start first the TCPAccept example script). "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." Link to comment Share on other sites More sharing options...
Leo2797 Posted December 12, 2019 Author Share Posted December 12, 2019 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? Link to comment Share on other sites More sharing options...
Nine Posted December 12, 2019 Share Posted December 12, 2019 It would greatly help if you could provide a code snippet of your TCP server and of your TCP client... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
ripdad Posted December 12, 2019 Share Posted December 12, 2019 Best as I can determine what you want from your post... As long as you are accessing your own internal network, any i.p. can become accessible, unless it's blocked on the receiving end. If you are trying to access an external i.p., which is not on the www, then you will need to get a port opened on Their router to gain access to a computer on Their network. Look into "port forwarding". "The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward Link to comment Share on other sites More sharing options...
jdelaney Posted December 13, 2019 Share Posted December 13, 2019 AutoItSetOption TCPTimeout Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100). IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Leo2797 Posted December 14, 2019 Author Share Posted December 14, 2019 On 12/12/2019 at 8:40 PM, Nine said: It would greatly help if you could provide a code snippet of your TCP server and of your TCP client... 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() Link to comment Share on other sites More sharing options...
Leo2797 Posted December 14, 2019 Author Share Posted December 14, 2019 On 12/12/2019 at 10:58 PM, ripdad said: Best as I can determine what you want from your post... As long as you are accessing your own internal network, any i.p. can become accessible, unless it's blocked on the receiving end. If you are trying to access an external i.p., which is not on the www, then you will need to get a port opened on Their router to gain access to a computer on Their network. Look into "port forwarding". 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 Link to comment Share on other sites More sharing options...
Leo2797 Posted December 14, 2019 Author Share Posted December 14, 2019 On 12/13/2019 at 3:28 AM, jdelaney said: AutoItSetOption TCPTimeout Defines the time before TCP functions stop if no communication. Time in milliseconds before timeout (default=100). wow thanks, this actually helped, I've increased the timeout to 10 seconds and it successfully connected, thanks. 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