public bool ConnectServer(string strIP, string strPort) { String newServerIp = ""; AddressFamily newAddressFamily = AddressFamily.InterNetwork; getIPType(strIP, strPort, out newServerIp, out newAddressFamily); if (!string.IsNullOrEmpty(newServerIp)) { strIP = newServerIp; } return(m_clientSocket.ConnectServer(strIP, strPort, newAddressFamily)); }