Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/User/Properties/GlobalIP: Difference between revisions
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
Animadoria (talk | contribs) (Created automatically by Anima Importer) |
||
Line 1: | Line 1: | ||
<!-- Generated @ 08/12/2022 23: | <!-- Generated @ 08/12/2022 23:46:08 +01:00 using Anima's CHM converter based on techref/objectmodel/objects/user/properties/GlobalIP.htm --> | ||
{{Protocols/MSNP|section=Activities}} | {{Protocols/MSNP|section=Activities}} | ||
__NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.GlobalIP Property (Restricted) = | __NOTOC__= <a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.GlobalIP Property (Restricted) = |
Revision as of 22:46, 12 August 2022
<a class="clsStd" href="/techref/objectmodel/objects/user/index.htm">User</a>.GlobalIP Property (Restricted)
Requires EnableIP permission. Contains a string object with the IP address of the user's computer, as it appears to the MSN® Messenger server. 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.GlobalIP
JavaScript Syntax
window.external.Users.Me.GlobalIP
Property Value
Returns a string with the IP address of the local computer, as it appears to the MSN Messenger server.
Example
To print the local IP address in the body of the document, use document.write to output Users.Me.GlobalIP, as shown in the following script example:
<script type="JavaScript"> <!-- var myUsers = window.external.Users; var myLocalUser = myUsers.Me; // Print my IP address in the body of the document. document.write( myLocalUser.GlobalIP ); </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.
The value of GlobalIP for the remote user returns a blank value.