UDP
remotePort()
Returns the port from which the UDP packet was sent. The packet is the one most recently processed by Udp.parsePacket()/Udp.receivePacket().
// SYNTAX
int port = Udp.remotePort();
Parameters: NONE
Returns:
int: the port from which the packet parsed byUdp.parsePacket()/Udp.receivePacket()was sent.