“Como obter IP do usuário em Python” Respostas de código

Obter endereço IP Python

import socket    
hostname = socket.gethostname()    
IPAddr = socket.gethostbyname(hostname)    
print("Your Computer Name is:" + hostname)    
print("Your Computer IP Address is:" + IPAddr) 
#How to get the IP address of a client using socket
Clumsy Caterpillar

Como obter IP do usuário em Python

import socket    
host_name = socket.gethostname()    
IPAddress = socket.gethostbyname(host_name)    
print("Your Computer Name is:" + host_name)    
print("Your Computer IP Address is:" + IPAddress) 
#How to get the IP address of a client using socket module
Stupid Sheep

Respostas semelhantes a “Como obter IP do usuário em Python”

Perguntas semelhantes a “Como obter IP do usuário em Python”

Mais respostas relacionadas para “Como obter IP do usuário em Python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código