Skip to content

cxz456999/NATPTransport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NATPTransport

About

NATPTransport is a transport for Unity Mirror. NATPTransport using relay server to punch through NAT.

Support protocols

  • TCP
  • UDP (Coming soon)
  • SSL (Coming soon)
  • WebSocket (Coming soon)

How to use NATPTransport

Server

Step1 Setup

Install .NET Core

$sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft- prod.rpm

$sudo yum install dotnet-sdk-3.1

Build

$cd /home/user/NATP_Server

$dotnet build

Config

$nano /home/user/NATP_Server/NATP_Server/App.config

  • External_IP_Address: Server external IP address
  • Port: Server listening on
  • Users: List of users have authority to create room on server

Appconfig

Step3 Run

$/home/user/NATP_Server/NATP_Server/bin/Debug/netcoreapp3.1

$sudo ./NATP_Server

Client

  1. Import Mirror
  2. Import NATPTransport.unitypackage
  3. Use NATPTransport as transport
  4. Input the public IP address (server external-ip), User/Password (added in App.config) example
  5. Input room tag
  6. enjoyed

Referrence

NetCoreServer

Mirror

About

Unity Mirror Transport, using relay server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages