# GetNetworkMessageFromPort

## Description

Returns the source port that was used by this message. Only applicable to messages received from UDP and broadcast listeners, network messages will return 0 for this function. It will also return 0 for messages created using CreateNetworkMessage. This will be in the range 0 to 65535.

## Definition

integer GetNetworkMessageFromPort( iMsgID )

int agk::GetNetworkMessageFromPort( UINT iMsgID )

## Parameters

- iMsgID - The ID of the message to read.