-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket.error: [Errno 98] Address already in use #8
Comments
问题解决了,是因为有个用bottle启动的web程序占用了8000端口,而SimpleHTTOServer默认也是8000端口 |
|
@gabfl yes, or any other service which binds to that specific port |
correct, indeed |
@DamonDBT you have something running on the default port used by the built-in Python web server (namely
For python 3.x this would be
or
Your site will the be at |
i run your code on debian with python 2.7. And it throw an error : socket.error: [Errno 98] Address already in use
i change the ip:port to my server ip+new port. but the error still exist.
i search the question online . someonte say to add one line code below , but i can't find where to add ,
self.recSocket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
self.recSocket.settimeout(CHECK_TIMEOUT)
self.recSocket.setsockopt(socket.SOL_SOCKET,socket.SO_REUSEADDR,1)
self.recSocket.bind(('', UDP_PORT))
the url: https://blog.csdn.net/chenyulancn/article/details/8181238
hope you can help me. Thanks.
The text was updated successfully, but these errors were encountered: