Why Can’t I Test Ports to Internet Addresses with Test-NetConnection?

0
3
Asked By CuriousCat42 On

I'm experiencing a weird issue with the Test-NetConnection cmdlet in PowerShell. It works perfectly for local servers, like when I test my local DNS with port 53 and it returns success. However, when I try to check an external address like 8.8.8.8 on the same port, it fails. I used to run tests on portquiz.net without any trouble, but now it seems to fail on every port I try, including 80 and 443 for various websites. I've run these tests in both Terminal and PowerShell, with admin rights, and I'm scratching my head about what's going wrong. Any insights?

1 Answer

Answered By TechieTom99 On

Sounds like it's not really a PowerShell issue. If it's working for local and not for external addresses, it could be something related to your network setup, ISP restrictions, or maybe even a proxy interfering with the connection. Just a thought!

NetworkNinja87 -

Yeah, I’m behind an Opnsense box as well, but my rules don’t block anything either. It’s odd since I can access HTTPS websites, which makes it seem like Test-NetConnection for port 443 should work for those sites too.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.