Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 8961

In Windows is there a way to check which port can be opened

$
0
0

I am experiencing an issue where port 64120 through 64130 cannot be opened.These ports are needed for the Eclipse SonarLint plugin.

The ports are not in use, checked with netstat, tcpview and portqry.There is something or some setting preventing those ports to be opened.

I would like to create a list of all ports that cannot be opened. I hope that if I know the blocked ranges I can find out what is blocking them.

Is there a command that creates such a list ?

Windows 11 Enterprise 23H2

How does the blocked ports issue manifest itself

PS C:\workspace> netstat -anp | findstr 64120

returns nothing, also tcpview and other utilities do not show port 64120 as being in use.

  1. Sonarlint plugin shows errors during start
Starting SonarLint for Eclipse 9.3.3006Error while starting port: 64120, Address already in use: bindError while starting port: 64121, Address already in use: bindError while starting port: 64122, Address already in use: bindError while starting port: 64123, Address already in use: bindError while starting port: 64124, Address already in use: bindError while starting port: 64125, Address already in use: bindError while starting port: 64126, Address already in use: bindError while starting port: 64127, Address already in use: bindError while starting port: 64128, Address already in use: bindError while starting port: 64129, Address already in use: bindError while starting port: 64130, Address already in use: bind
  1. Using python tcp_server example

https://docs.python.org/3/library/socketserver.html

python3.11.exe c:/cce/workspaces/develop128/tcp_server.pyTraceback (most recent call last):  File "c:\workspace\tcp_server.py", line 24, in <module>    with socketserver.TCPServer((HOST, PORT), MyTCPHandler) as server:         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\socketserver.py", line 456, in __init__    self.server_bind()  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\socketserver.py", line 472, in server_bind    self.socket.bind(self.server_address)PermissionError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Firewall ?

I suspect firewall and other system admin tooling to be possible causes, but at the moment I cannot check. I want to create the list of block port so that I can communicate that to our system administrators

enter image description here


Viewing all articles
Browse latest Browse all 8961

Trending Articles