This topic created in 3870 days ago, the information mentioned may be changed or developed.
就是写 socket 时 怎么定义客户端的端口 现在在服务器端看到客户端连接上来的端口都是随机的 想固定客户端的端口 该怎么写
 |
|
2
mulog Nov 2, 2015
先 bind
sock.bind(("client_ip", client_port)) sock.connect(("server_ip", server_port))
|