Switched to UDP and changed port
Added some checks