port = GetLocalPort(id[, type])
id. The optional argument type specifies the
type of the network object passed in argument 1. The following types
are currently supported by this function:
#NETWORKCONNECTION:OnConnect and OnReceiveData events using the command
InstallEventHandler().
#NETWORKSERVER:
#NETWORKUDP:
If you omit the optional type argument, it will default to type
#NETWORKCONNECTION.
#NETWORKCONNECTION)