peerAddress | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the IP address of the remote system at the other end of a socket. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop, server | ||||||
Parameters |
| ||||||
Example |
| ||||||
Values |
| ||||||
Related | Command: accept, open socket Function: hostAddress, hostAddressToName, DNSServers Control Structure: function Glossary: socket, host, IP address, command, return, port | ||||||
Description | Use the peerAddress function to find the Internetaddress of the computer a socket is connected to. The socket must be open. If the specified socket has not been opened, the peerAddress function returns "not an open socket". If you have issued an open socket command to create the socket, you cannot use the peerAddress function until after the socket has been created and the command has completed. The connectionID is needed only if more than one socket is connected to the same port of the same host. The connectionID is assigned by the accept or open socket command that created the socket. | ||||||
Tags | networking |