private void tboxInboundAddr_TextChanged(object sender, EventArgs e) { if (Lib.Utils.TryParseIPAddr(tboxInboundAddr.Text, out string ip, out int port)) { if (tboxInboundAddr.ForeColor != Color.Black) { tboxInboundAddr.ForeColor = Color.Black; } serverItem.SetIPandPortOnDemand(ip, port); }