# UDP driver altering data

**URL:** <https://forum.inductiveautomation.com/t/udp-driver-altering-data/10322>\
**Category:** Ignition\
**Created:** [August 8, 2015, 9:49am UTC](https://forum.inductiveautomation.com/t/udp-driver-altering-data/10322 "2015-08-08T09:49:51Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [August 11, 2015, 7:55pm UTC](https://forum.inductiveautomation.com/t/udp-driver-altering-data/10322/5 "2015-08-11T19:55:06Z")

</div>

I tried the following script in the Gateway startup script:

```auto
import socket
import binascii

UDP_IP = "192.168.1.250"
UDP_PORT = 5005

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind((UDP_IP, UDP_PORT))

while True:
	data, addr = sock.recvfrom(1024)
	print "Received %s from %s" % (binascii.hexlify(data), addr)
	system.tag.write("[tags]udp_byte", data)

```

but my Designer now hangs when I try to save it. I’d imagine the Gateway is now thrashing non-stop at the script - is there any way of avoiding this and still running quickly enough to read each packet as it arrives?

---

_[View the full topic](https://forum.inductiveautomation.com/t/udp-driver-altering-data/10322)._
