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