1

I stablish a TCP connection with a host and my machine is listening in the port X. Can I create new sockets which listen in the same port? I am developing in Python, I think that the language is not a issue, but one friend is developing in C and can do it and I can't. It says me that the port is already in use when I want to do the bind. This is my connection code:

sock = socket(AF_INET, SOCK_STREAM)
list_sock.bind((myIp,myPort))
list_sock.connect((dstAddress,dstPort))

Thanks!

0 Answers0