Jump to content

Recommended Posts

Posted (edited)

I have problem with:

_Example()
Func _Example()
    Ping('google.com', 20)
EndFunc

Never ends......

so I checked ping in CMD console, the same problem, even If I ping my local router.
image.png.f8a491abf0e018f7dbe3eec0332177ba.png

But internet works fine.
I already restart WifiConnection
Also I switch to another router (Tehering for my smartphone)

 

Question 1:
Anybody know what is fix for this issue (I will restart Windows as soon as I post this topic)
EDIT 1: after restart - issue still exist

Question 2:
Why Ping.exe and Ping() from AutoIt never ends ?

 

EDIT 2: I have ESET SmartSecurity - but turn off Firewall, and still not fixed

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

If you can browse the web, that means DNS, HTTP and HTTPS traffic is working. I suspect it is some firewall blocking ICMP; could be the router (0.1), or perhaps firewall software on your computer.

Can you ping any other local computers, including your own IP?  Is this a personal computer, company computer?

 

Edited by spudw2k
Posted (edited)

Found this....

So this is really freak AV (ESET Security) issue.

image.thumb.png.a123e767ee19e38cf5fffdca5226b2c3.png

Translation by hand:

  Quote

connection refuesed by the rule "Block connection on ICMP protocol"

Expand  

When I click unblock ..... then I saw "Please wait" and nothing happend for few minutes

image.png.5abd0fe5ee0a5023d8451c626e2c779e.png

 

I also notice that I can not change anything in my ESET configuration.
I finally call to ESET Helpdesk...

For now the proposed solution is to reinstall ESET .....

 

 

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

But the question is:

Why Ping() stoped AutoIt execution (even if I set TimeOut parameter) ?
 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

I too use Eset (simple NOD32, not the Endpoint product) and have zero issue pinging the world.

Note that your ISP may block ICMP requests.

  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted (edited)
  On 6/4/2020 at 11:53 AM, mLipok said:

Why Ping() stoped AutoIt execution (even if I set TimeOut parameter) ?

Expand  

Good question Dorothy. It should not happen.
But living in a moment of high strangeness, posting Windows version and build, and AutoIt version can come in handy. Also trying versions 3.3.8.1 and 3.2.14.x can show if it ever had a problem.
All this may help, but unless the problem can get replicated, it can not be observed by others to bring about a solution.

  Quote

Why Ping.exe and Ping() from AutoIt never ends ?

Expand  

...then that shows, that is not necessarily AutoIt but likely, the anti-virus solution :( 

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted (edited)

(I am assuming you're running Windows 10, by the look of the command line at top)

Have you tried to repair the TCP/IP stack?

Type netsh winsock reset and press Enter.
Type netsh int ip reset and press Enter.
Type ipconfig /release and press Enter.
Type ipconfig /renew and press Enter.
Type ipconfig /flushdns and press Enter.

Also if using Windows 10, there are auto-adjustments. Let me stress "AUTO". So windows is supposed to fix this automatically.
Sometimes it fails.

Here's an interesting link and it might help, assuming this is TCP/IP related.
https://docs.microsoft.com/fr-fr/archive/blogs/netgeeks/a-word-about-autotuninglevel-tcp-receive-auto-tuning-level-explained

Finally I'm lazy. I use TCP Optimizer. It will create a backup file before it does any changes. It can fix your stack in a jiffy. Make sure you run it as administrator. If you're paranoid, go into system restore and create a restore point.
So now you've got some options. 
https://www.speedguide.net/downloads.php

This being said, I've never seen Ping not completing. 

If all else fails scan your computer for spyware (assuming ESET isn't intercepting it) . Here's my favorite quick-fix tool https://fr.malwarebytes.com/adwcleaner/ Apparently malware can graft itself within the stack (which is why we reset it).
In any case, ADWCleaner saved my client's bacon many times. Worth it's weight in gold. 

Edited by obiwanceleri

Help a newbie, comment your code!

Posted
  On 6/4/2020 at 11:46 AM, mLipok said:

I finally call to ESET Helpdesk...

For now the proposed solution is to reinstall ESET .....

Expand  

Typical tech support response :)

And it indeed looks like the Ping function in AutoIt has a bug, it should return if a timeout is defined.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted (edited)

Few hours before I had a problem with Internet on my router so I switch to SmartPhone Tehering.
Then I switch back to router (TPLink + DDWRT).

The problem was in ESET AV which block each ICMP connection (PING) this mean all Incoming/Outgoing PING connection was dropped by my ESET AV FIREWALL software.
But.. this was not only one prolbem with this AV software.
ESET had an issue as I could not even change configuration.

After ESET resintall all was fine.

  On 6/4/2020 at 5:59 PM, TheDcoder said:

And it indeed looks like the Ping function in AutoIt has a bug, it should return if a timeout is defined.

Expand  

And this is the main problem which I'm asking for.
But you must take into account, that this is not only issue wiht AutoIt Ping() function .
The same problem have ping.exe from MS Windows instalation.

So it seams that AutoIt use the same Windows API as ping.exe  .... which mean that probably this is internal windows issue.

 

btw.

You can easly simulate this issue by blocking all connection for ICMP on your computer.

EIDT:
I use ESET software for long time (more than 10 years), on more than 200 PC's,  and this is the first time when I had such problem.

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 6/4/2020 at 7:44 PM, mLipok said:

But you must take into account, that this is not only issue wiht AutoIt Ping() function .
The same problem have ping.exe from MS Windows instalation.

So it seams that AutoIt use the same Windows API as ping.exe  .... which mean that probably this is internal windows issue.

Expand  

I see, that is interesting.

  On 6/5/2020 at 1:23 PM, Earthshine said:

Use windows built-in defender and that’s all you

Expand  

I do the same, it works good enough when you follow safe practices. Not sure about MalwareBytes, I never used it.

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...