Datagram.Port

From Xojo Documentation

Property (As Integer )
aDatagram.Port = newIntegerValue
or
IntegerValue = aDatagram.Port

New in 2005r1

Supported for all project types and targets.

The port that the packet will be sent to when calling the Write method. If the Port property is set or left to zero, then the port that it is locally bound to is used.

Notes

When reading packets, the Port property specifies the port that the Datagram was sent from on the remote computer.

Sample Code

d.Port = 7080