Network.natFacilitatorIP (Facilitator Nat穿透的IP)

static var natFacilitatorIP : string

Description描述

The IP address of the NAT punchthrough facilitator.

Facilitator NAT穿透的IP地址。

Usually this is the same as the Master Server.

通常这与主服务器相同。

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void ResetIP() {
		Network.natFacilitatorIP = "127.0.0.1";
		Network.natFacilitatorPort = 10001;
	}
}
function ResetIP() {
	Network.natFacilitatorIP = "127.0.0.1";
	Network.natFacilitatorPort = 10001;
}
Page last updated: 2011-11-7