Garry's Mod Wiki

Revision Difference

Player:IPAddress#512687

<function name="IPAddress" parent="Player" type="classfunc">⤶ <description>Returns the player's IP address and connection port in ip:port form</description>⤶ <realm>Server</realm>⤶ <rets>⤶ <ret name="" type="string">The player's IP address and connection port</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Prints the player's IP and port</description>⤶ <code>print( Entity( 1 ):IPAddress() )</code>⤶ <output>192.168.1.101:27005</output>⤶ ⤶ </example>