Version: 2017.3

Network.connectionTesterPort

切换到手册
public static int connectionTesterPort ;

描述

Network.TestConnection 中使用的连接测试器的端口。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void ResetIP() { Network.connectionTesterIP = "127.0.0.1"; Network.connectionTesterPort = 10000; } }