Player/IPAddress

From Garry's Mod
Jump to: navigation, search
 Player:IPAddress( )

Contents

Description

Returns the player's IP address and connection port in ip:port form

Returns

string

The player's IP address and connection port

Examples

Example

Prints the player's IP and port

print( Entity( 1 ):IPAddress() )

Output:

192.168.1.101:27005
Personal tools
Navigation