Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
EU4DGC opened this issue May 2, 2022 · 3 comments

Comments

@EU4DGC
Copy link

EU4DGC commented May 2, 2022

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?

@nyaaaaaaatalie
Copy link
Owner

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
Copy link
Author

EU4DGC commented May 2, 2022

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

@nyaaaaaaatalie
Copy link
Owner

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants