build own server

Hello,everyone

I want to build my own server,i have downloaded the MasterServer.exe and ConnTester.exe,and download
networking sample,How to start? I konw I have to run MasterServer.exe and ConnTester.exe on my server machine.

But I don’t konw which file i have to change?how to setup the networking sample?Shoud i have to make some change for MasterServer or ConnTester?

I realy need help.Thank you very much.Sorry my English.

The master server and con tester do not allow you to host a dedicated Unity game server if that is your intend.
They only allow you to host a master server for NAT Punchthrough and listing of currently available games.

Thanks for your reply. :slight_smile:

i just want to build a MasterServer for Multiplayer Networking,not dedicated Unity game server,how to do?

Just put the master server on a machine of your choice and run it.
then when connecting to the masterserver in your script code, put your master server machine IP and port in, not the default one (which goes to Unity techs masterserver)

Thank you very much. :smile:

should i change this ip and port in ConnectGui.js:

//DontDestroyOnLoad(this);
var remoteIP = "127.0.0.1";
var remotePort = 25001;
var listenPort = 25000;

and change the port in ConnectGuiMasterServer.js:

DontDestroyOnLoad(this);
var gameName = "You must change this";
var serverPort = 25002;

Anything else I need to change?

thanks

if you don’t use the direct connect guis you only need to change the later. But you also must change the IP there. It is not changed anywhere (default points to unity techs masterserver), which is why you don’t see it mentioned in the source.
but the script reference on masterserver will show you the possible fields

Which file default points to unity techs masterserve?

No file

the masterserver class hardcoded default is unity techs own masterserver.
Please check the MasterServer class documentation in the scripting documentations to see how to point it to a different URL

Thanks for your help,dreamora. :slight_smile:

My mates and i want to create a server(preferably using c++) that can comunicate with unity clients and run on linux. Is there a way to build a dedicated Unity game server, apart from the client?

If you use an alternative networking or directly UDP / TCP sockets, surely
but not through the unity networking at least without some work on the reverse engineering end to find out the specific consts used in raknet 3.0

EDIT: i’m not sure if i understood it correctly. So, if i use another networking or tcp/udp sockets, it’s possible. But if i want to use unity network, i have to do some reverse engineering. right?

dreamora, couldn’t i find out about these specific consts reading the unity masterserver code(provided here: Game Development Software: Build a Multiplayer Game | Unity)?

anyone can answer my question?

The master server beta does not contain any game server related things.

thanx!