1

is there a way to get the IP of the connected client? (And if possible the port it uses). I tried client_socket.getsockname() but it gave me my IP address.

Netanel
  • 477
  • 2
  • 11

1 Answers1

0

You have to use the socket.getpeername() method.

xilpex
  • 3,097
  • 2
  • 14
  • 45