Garry's Mod Wiki

Player:IPAddress

Player:IPAddress

  string Player:IPAddress()

Description

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

Returns Error! for bots.

Returns

1 string ip
The player's IP address and connection port

Example

Prints the player's IP and port

print( Entity( 1 ):IPAddress() )
Output: 192.168.1.101:27005

Special Pages


Wikis

?

Render Time: 20ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 7
Render Body 0
Render Sidebar 7