Gunakan script phyton ini:
import socket, urllib2 UDP_IP = "127.0.0.1" UDP_PORT = 50000 sock = socket.socket(socket.AF_INET, # Internet socket.SOCK_DGRAM) # UDP #sock.bind((UDP_IP, UDP_PORT)) sock.bind(("", UDP_PORT)) #bind, receive from any addresss while True: data, addr = sock.recvfrom(1024) # buffer size is 1024 bytes print "received message:", data stringdata = str(data) if stringdata[0] == "+": value = stringdata[2] karakter = ord(loket) karakter = karakter + 1; value = chr(karakter) url = "http://localhost/getUDP.php?var="+value print "url:", url response = urllib2.urlopen(url) headers = response.info() data = response.read() print data