This document is about: FUSION 1
SWITCH TO

STUNサーバー

STUNサーバーとは

STUN(Session Traversal Utilities for NAT)とは、NAT(Network Address Translation)の後ろにあるデバイスを支援するネットワークプロトコル、またはインターネット上で他のデバイスと通信を行っているファイアウォールのことを指します。STUNサーバーは主にVoIP (Voice over Internet Protocol)、ビデオ会議などその他のリアルタイム通信のアプリケーションで使用されています。

STUNサーバーの主な機能

  1. パブリックIPディスカバリ: STUNサーバーは、デバイスがNATデバイスにより割り当てられたパブリックIPアドレスを探す際に支援します。
  2. NATタイプ検出: デバイスがどのタイプのNAT配下にあるかを特定する支援を行います(例:フルコーンNAT、制限付きコーンNAT、ポート制限付きコーンNAT、対照NAT)。
  3. リレー候補ディスカバリ: デバイスがNATトラバーサル戦略を決定することで、ピア2ピア接続を確立するのに必要な情報を提供します。

PhotonSDKにおけるSTUNサーバーの使用方法

Photon Fusionは、クライアントおよびサーバー・ホストのピア間の直接接続を実現するため、サードパーティのSTUNサーバーを使用しています。これは、スムーズな通信、シームレスな接続の確立をPhoton Fusionで実現する上で重要な役割を担っています。

Photon Fusionは、デフォルトでパブリックで使用できるGoogle STUNサーバーを使用していますが、そのGoogle STUNサーバーが使えない場合など、このリストを拡張して使用できます。

カスタムSTUNサーバーをFusionに受け渡す方法は、以下をご覧ください

C#

// NetworkRunnerの開始時
runner.StartGame(new StartGameArgs {
  // ...
  // カスタムSTUNサーバーの受け渡し
  CustomSTUNServer = "stun1.l.google.com:19302"
});

サードパーティのパブリックSTUNサーバー一覧

以下の一覧に記載されているSTUNサーバーは、Photon Fusionで使用されているデフォルトのリストに追加して拡張できます。

text

stun.12voip.com:3478
stun.1und1.de:3478
stun.3cx.com:3478
stun.aa.net.uk:3478
stun.acrobits.cz:3478
stun.actionvoip.com:3478
stun.annatel.net:3478
stun.antisip.com:3478
stun.avigora.fr:3478
stun.cablenet-as.net:3478
stun.callromania.ro:3478
stun.commpeak.com:3478
stun.cope.es:3478
stun.counterpath.com:3478
stun.counterpath.net:3478
stun.dcalling.de:3478
stun.dus.net:3478
stun.easyvoip.com:3478
stun.ekiga.net:3478
stun.epygi.com:3478
stun.faktortel.com.au:3478
stun.freeswitch.org:3478
stun.gmx.de:3478
stun.gmx.net:3478
stun.halonet.pl:3478
stun.internetcalls.com:3478
stun.intervoip.com:3478
stun.ipshka.com:3478
stun.it1.hr:3478
stun.l.google.com:19302
stun.linphone.org:3478
stun.liveo.fr:3478
stun.myvoiptraffic.com:3478
stun.netgsm.com.tr:3478
stun.nfon.net:3478
stun.ooma.com:3478
stun.pjsip.org:3478
stun.schlund.de:3478
stun.sigmavoip.com:3478
stun.sip.us:3478
stun.sipgate.net:10000
stun.sipgate.net:3478
stun.siplogin.de:3478
stun.siptraffic.com:3478
stun.sma.de:3478
stun.solcon.nl:3478
stun.solnet.ch:3478
stun.sonetel.com:3478
stun.sonetel.net:3478
stun.srce.hr:3478
stun.t-online.de:3478
stun.tel.lu:3478
stun.telbo.com:3478
stun.tng.de:3478
stun.twt.it:3478
stun.uls.co.za:3478
stun.usfamily.net:3478
stun.vivox.com:3478
stun.vo.lu:3478
stun.voip.aebc.com:3478
stun.voip.blackberry.com:3478
stun.voip.eutelia.it:3478
stun.voipbuster.com:3478
stun.voipcheap.com:3478
stun.voipgate.com:3478
stun.voipinfocenter.com:3478
stun.voipplanet.nl:3478
stun.voippro.com:3478
stun.voipstunt.com:3478
stun.voipwise.com:3478
stun.voipzoom.com:3478
stun.voys.nl:3478
stun.voztele.com:3478
stun.zadarma.com:3478
stun1.faktortel.com.au:3478
stun1.l.google.com:19302
stun2.l.google.com:19302
stun3.l.google.com:19302
stun4.l.google.com:19302
Back to top