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.
Asked
Active
Viewed 189 times
1

Netanel
- 477
- 2
- 11
-
3[`getpeername()`](https://docs.python.org/3/library/socket.html#socket.socket.getpeername) – spectras Jan 26 '19 at 13:13
-
@spectras thank you! – Netanel Jan 26 '19 at 13:16