Git Product home page Git Product logo

natptransport's Introduction

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

natptransport's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

natptransport's Issues

Build issue : ServerMessage could not be found

Hi mate !
I was going to test this new version (congratulations by the way !!!), I had the following issue while trying to build on my Ubuntu 16 server :
image

Same problem on Windows 10 in Visual Studio.

I feel like we are just missing an import or the ServerMessage file.

Cheers !

Connection is not established

Hello again !

I have been trying this new version recently, but could not make it work. I have installed the Server on my Ubuntu remote server, I opened the right port.
When I click Host in Unity HUD I can see the TCP connection establishing if I check with a sniffer (Wireshark), it moves to the next scene, but there is no log in the server console. And I cannot list the Rooms or connect a client to the room. Have you tried it with a remote server ?
[EDIT] When I run the server locally on Visual Studio it works and I see the Log.

Cheers
Jules

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.