snstac / aiscot

Display Ships in TAK - AIS to TAK Gateway
https://github.com/snstac/aiscot
Apache License 2.0
41 stars 11 forks source link

aiscot on Windows cannot bind to port 5050/udp #8

Open ampledata opened 1 year ago

ampledata commented 1 year ago

Starting aiscot on Windows using the default UDP listen port of 5050 will return the error:

OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted

This is because svchost.exe is listening to 5050/udp (WHY?!):

PS C:\Users\gba> netstat -ano|findstr 5050
  UDP    0.0.0.0:5050           *:*                                    7208

And this process (7208) cannot be killed :(

PS C:\Users\gba> ps|findstr 7208
    383      23     5188      18736              7208   0 svchost
PS C:\Users\gba> taskkill /F /PID 7208
ERROR: The process with PID 7208 could not be terminated.
Reason: Access is denied.