Python Networking -


so have create socket , using function socket.bind() , keep on getting following error: 1 usage of each socket address (protocol/network address/port) permitted here code:

import socket  s = socket.socket() host = socket.gethostname() port = 12345 s.bind((host, port))   s.listen(5) while true:     c , addr = s.accept()     print('thank connecting to', addr)     c.send('hello , connecting')     c.close() 

the port / ip combination bound already. can not bind again. should check if other instance of program still running. if not, use other port.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -