Question: is arp udp or tcp?
Answer: ARP is not a UDP based protocol and thus cannot be captured with an UDP socket. Have a look at the OSI layer and you will find ARP at layer 2.. 3 (link..network) while UDP is at the transport layer (layer 4). Without ARP UDP cannot even work in the local network.