WINSOCK REMOTE PORT

Use this command to retrieve the remote port number of TCP and UDP channels.
When using UDP channels you must have a way to determine where incoming packets are coming from. After having received a UDP message, you may use this command to retrieve the senders portnumber. Together with the hostname/ip-adress, which you receive by using WINSOCK REMOTE HOST$(), you can set your udp channel target using WINSOCK SET CHANNEL TARGET.
You can now reply to the sender by simply using one of the UDP sending commands.

SYNTAX
Return Integer=WINSOCK REMOTE PORT(open_channel as Dword)

RELATED INFO
WINSOCK command menu
Index

EXAMPLE
Showcase-example 1
Showcase-example 2