Modify

Opened 10 years ago

Closed 10 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 by J-Paul Mesnage, 10 years ago

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

comment:2 by sainsuper@…, 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 anonymous, 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 BrewManNH, 10 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.