Giving support to udp
Works but it has a nullreferenceexception