socket connection python ip code example Example: python socket get client ip address Hostname: DESKTOP-A0PM5GD IP Address: 192.168.43.15