jelimoore / trbodatasvc

MIT License
5 stars 0 forks source link

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

Open EU4DGC opened 2 years ago

EU4DGC commented 2 years ago

Hello. There is a small problem with your script or with my knowledge of Python. OSError: [WinError 10048] Only one usage of each socket address (protocol/networ k address/port) is normally permitted I use the standard example for ARS It gives this error. Can you help me?

jelimoore commented 2 years ago

Hi,

It sounds like you already have something listening on that port. You might want to run netstat to show all listening UDP ports and disable/stop the offending service.

Nat

EU4DGC commented 2 years ago

Hello again. I ran netstat first and found no services running on that port. Although I have a guess. I'm trying to use the in-place control radio utility MNIS. However, I don't think this is the problem. Another app is getting lrrp data fine

jelimoore commented 2 years ago

If you are using MNIS likely it is listening on the same port. The "OSError: [WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted" error is an error your OS is kicking back because you can only listen on one address:port combination at once. Either this library is listening twice which I sorta doubt since I use it in my own apps, or there's already an app listening on your local computer with that port (which is likely, since you mentioned you run MNIS). Try on a totally blank computer/raspberry pi or a VM. Also, ARS is used for a lot of stuff with trbos, especially RMDP, so there may be more than just one app contending for use of that port.