[英]From client connect with server with the same network
I have this code to connect with server like this: 我有这个代码连接服务器像这样:
This is file server.py 这是文件server.py
host = "192.168.0.91"
port = 5004
s = socket.socket()
s.bind((host,port))
s.listen(5)
print("Server Started.")
But when I run it, it showed me an error 但是当我运行它时,它显示了一个错误
File "D:/odoo11new/server.py", line 61, in Main
s.bind((host,port))
OSError: [WinError 10049] The requested address is not valid in its context
How can i fix that problem :( any suggest for me? Thanks in advance 我该如何解决这个问题:(对我有任何建议?提前谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.