Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > getAddress |  |

getAddress

Syntax

    system.user.getAddress ["userID"]

Description

Multiuser Server command; when sent to the server, returns a specific user's IP address.

Example

This statement obtains the IP address for the user logged in as Jane:

    errCode = gMultiuserInstance.sendNetMessage("system.user.getAddress", "anySubject", "Jane")

The server responds with a message that has the same subject. The content of the message is a property list containing the requested information.

Note: The IP address may not be correct if the user is behind a firewall.

The server's response looks like this:

    [#errorCode: 0, #recipients: ["userName"], #senderID: "system.user.getAddress", #subject: "anySubject", #content: [#userID: "Jane", #ipAddress: "123.45.67.1"], #timeStamp: 763283481]

See also

`getNetAddressCookie()`