Opened 9 years ago
Closed 9 years ago
#3151 closed Bug (No Bug)
TCPConnect() return always -1 on a public ip
Reported by: | sainsuper@… | 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 Changed 9 years ago by Jpm
comment:2 Changed 9 years ago by sainsuper@…
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 Changed 9 years ago by anonymous
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 Changed 9 years ago by BrewManNH
- Resolution set to No Bug
- Status changed from new to closed
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
For me both Release and Beta are OK
Can you double check your environment?