private void Btn_host_Click(object sender, EventArgs e) { connected(); btn_lobbyStartGame.Enabled = true; connectedIP = null; connectedPort = int.Parse(txt_hostPort.Text); playerName = txt_hostPlayerName.Text; lbx_lobbyPlayerList.Items.Add($"{playerName}\t\t(HOST)"); setLobbyGameName(txt_hostGameName.Text); lobbyServer = new LobbyServer(txt_hostGameName.Text, connectedPort, this, playerName); lobbyServer.startServer(); }