[펌] How to get IP addresses of all devices in local network with Unity UNET in C#?
Unity3D/Tips / 2018. 2. 5. 14:13
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Tools : MonoBehaviour {
//get local ip address
public string getIP() {
string IP = "";
IP = Network.player.ipAddress; <--- this
return IP;
}
//get all ip addresses in local network
public List<string> getIPArray() {
List<string> listIP = new List<string>();
return listIP;
}
}
[출처]
[참조] http://www.devkorea.co.kr/bbs/board.php?bo_table=m03_qna&wr_id=29214
반응형
'Unity3D > Tips' 카테고리의 다른 글
[링크] Google Analytics 연동하기 (0) | 2018.02.22 |
---|---|
[펌] How to know Unity Build application is 32bit or 64bit (0) | 2018.02.20 |
[펌] Unity에서 Xcode 설정을 자동화하는 방법 정리 (2) | 2018.02.02 |
[펌] iPhoneX Disable Home Indicator (0) | 2017.11.13 |
iOS 장치의 세대 확인 (0) | 2017.11.13 |