<reponame>vianaernesto/ServidorUDP
import socket

MCAST_GRP = '172.16.58.3'
MCAST_PORT = 5007


MULTICAST_TTL = 2

sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM,socket.IPPROTO_UDP)
sock.setsockopt(socket.IPPROTO_IP,socket.IP_MULTICAST_TTL,MULTICAST_TTL)
sock.sendto("robot",(MCAST_GRP,MCAST_PORT))
import socket

MCAST_GRP = '172.16.58.3'
MCAST_PORT = 5007


MULTICAST_TTL = 2

sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM,socket.IPPROTO_UDP)
sock.setsockopt(socket.IPPROTO_IP,socket.IP_MULTICAST_TTL,MULTICAST_TTL)
sock.sendto("robot",(MCAST_GRP,MCAST_PORT))