public override void OnEnterWorld(Player player) { if (Main.netMode == 1) { currentConnectedAdress = Netplay.Connection.Socket.GetRemoteAddress(); port = Netplay.ListenPort; hostName = Netplay.GetLocalIPAddress(); } }