Opened 10 years ago
Closed 10 years ago
#3151 closed Bug (No Bug)
TCPConnect() return always -1 on a public ip
| Reported by: | Owned by: | ||
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | 3.3.14.2 | Severity: | None |
| Keywords: | Cc: |
Description
hello,
using this code
$RepeaterIP = "www.google.it" $RepeaterServerPort ="443" TCPStartup() $socket = TCPConnect(TCPNameToIP($RepeaterIP), $RepeaterServerPort) MsgBox(0, "", $socket) TCPShutdown()
Socket will return always -1 ( and @error isn't set)
if i use local ip address (like 192.168.x.x) it works.
Using beta version 3.3.15.0 it works
latest Autoit that working is 3.3.12.0
Attachments (0)
Change History (4)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
hello, thansk for fast aswer,
i have made more test and i notice that if i make many tcp request on google or on any sites, i receive -1 but if i wait some seconds(30 s) some times i'll reveive corret sockets
i have compiled same code with different version of autoit 3.3.15.0 ( beta) and 3.3.14.2.
With beta version i always have socket. with 3.3.14.2 i often have -1 and only some times i have socket.
i send compiled and source code
http://www.tecnopc.info/test.zip
comment:3 by , 10 years ago
hello jpm,
i have checked my enviroment and after many test i notice that a hardware firewall in office block some connection for security reason. i have done test in other line and the problem isn't present.
thank you and sorry for the time lost.
Sainsuper
comment:4 by , 10 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |

For me both Release and Beta are OK
Can you double check your environment?