Answers for "python socket.io get ip from socket"

3

socket io python

# for installing socket io on PC
pip install python-socketio
Posted by: Guest on July-23-2020
0

python socket get client ip

# If you are connected to the client socket you can get its address
client_socket.getpeername()
# Expected return value is a Tuple (ip, port)

# You can also get your own socket address
client_socket.getsockname()
# Expected return value is a Tuple (ip, port)
Posted by: Guest on September-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language