Opened 8 years ago

Closed 8 years ago

#3151 closed Bug (No Bug)

TCPConnect() return always -1 on a public ip

Reported by: sainsuper@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


using this code

$RepeaterIP = ""
$RepeaterServerPort ="443"
$socket = TCPConnect(TCPNameToIP($RepeaterIP), $RepeaterServerPort)
MsgBox(0, "", $socket)

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 it works
latest Autoit that working is

Attachments (0)

Change History (4)

comment:1 Changed 8 years ago by Jpm

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

comment:2 Changed 8 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 ( beta) and
With beta version i always have socket. with i often have -1 and only some times i have socket.

i send compiled and source code

comment:3 Changed 8 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.

comment:4 Changed 8 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.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.