public static void SerializeIp(AuthClient client) { BigEndianWriter packet = new BigEndianWriter(); string[] args = (client.GetSocket().RemoteEndPoint as IPEndPoint).Address.ToString().Split('.'); packet.WriteByte(byte.Parse(args[0])); packet.WriteByte(byte.Parse(args[1])); packet.WriteByte(byte.Parse(args[2])); packet.WriteByte(byte.Parse(args[3])); client.Send(MessageConstant.S_IP, packet); }