Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/LocalIP
User.LocalIP Property (Restricted)
Requires EnableIP permission. Contains a string object with the IP address of the local computer, as it appears to the computer. This is significant because of the way the network can change the address as the network traffic goes through firewalls. This property is read-only, and applies to the local computer only.
VBScript Syntax
external.Users.Me.LocalIP
JavaScript Syntax
window.external.Users.Me.LocalIP
Property Value
Returns a string with the IP address of the local computer, as it appears to the user.
Example
To print the local IP address in the body of the document, use document.write to output Users.Me.LocalIP, as shown in the following script example:
<script type="JavaScript"> <!-- var myUsers = window.external.Users; var myLocalUser = myUsers.Me; // Print my local IP address in the body of the document. document.write( myLocalUser.LocalIP ); </script> //-->
Remarks
Use of this property is restricted by the EnableIP flag. An application that does not possess this flag is not able to read this information from MSN® Messenger. No exception is thrown, and a blank value is returned.
Reading the LocalIP property of the remote user returns a blank value.