From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Integer )
aDatagram.Port = newIntegerValue
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.


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

Sample Code

d.Port = 7080