Player.net.connection.ipaddress returning null
Discussion in 'Rust Development' started by Rusty, Mar 11, 2016.
-
Get white IP without port
Code:using System.Text.RegularExpressions;string ip = IpAddress(player.net.connection.ipaddress); static string IpAddress(string ip) { return Regex.Replace(ip, @":{1}[0-9]{1}\d*", ""); }Last edited by a moderator: Mar 11, 2016 -
player.net.connection.ipaddress returns null as of todays update...
-
Oxide build 1817
WORK!!! -
Thanks Cerber0s. I figured out my mistake. (nil checking)
