It works without internet. The function title is technically incorrect. It receives a packet, then sends a response to the address from which it received the packet. It is like a UDP "server". If you want to see how a UDP "client" works, check out the NTP example.