Skip to content
Snippets Groups Projects
Commit 49f42cd8 authored by Fernando Erd's avatar Fernando Erd :ok_hand:
Browse files

Delete Server.py

parent 894fd724
No related branches found
No related tags found
No related merge requests found
import socket
HOST = "200.17.202.49" # Endereco IP do Servidor
PORT = 5000 # Porta que o Servidor esta
udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
orig = (HOST, PORT)
udp.bind(orig)
while True:
hostname, cliente_ip= udp.recvfrom (1024)
msg,client_ip = udp.recvfrom(1024)
print hostname, ':', msg
udp.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment