Garry's Mod Wiki

Player:IPAddress

string Player:IPAddress()

Description

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

Returns

1 string
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

Page Links


Special Pages


Wikis

?

Render Time: 22ms

Session 0
DB GetPage 3
Generate Html 2
SaveChanges 8
Render Body 0
Render Sidebar 6