WINSOCK REMOTE HOST$
Use this command to retrieve the remote host address 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 hostname (ip adress). Together with the port, which you receive by using WINSOCK REMOTE PORT(), 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 String=WINSOCK REMOTE HOST$(open_channel as Dword)
RELATED INFO
WINSOCK command menu
Index
EXAMPLE
Showcase-example 1
Showcase-example 2