Vizard 7 » Command Index » Vizard objects » network » <network>.port
7.7

<network>.port

Set the port to communicate over

<network>.port(  
num  
)  
num
A valid port number. The default port number is viz.NETWORK_PORT.

Remarks

This command will set the port that the data will be sent for this network object. The computer receiving the data must specify that it wants to receive data on the port by using the <viz:net>.addPort command.

Return Value

None

Example

client = viz.addNetwork('ComputerName')
#Send data over port 5000
client.port(5000)

See also

<viz:net>.addPort
<viz:net>.removePort