Garry's Mod Wiki

Garry's Mod Wiki

  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

Output: 192.168.1.101:27005

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...