Problems compiling the connection tester

I’m trying to host a master server and connection tester on my server so I downloaded the source for both the master server and connection tester.

The asset server compiled without a problem and currently working perfectly, however when I compiled the connection tester I got compiler errors stating that “MasterServer.h” could not be found, copied the file from the master server project and added it to the xCode project, then it gave me errors because of a duplicated function declaration found in both MasterServer.h and conntester.cpp, I removed MasterServer.h and it finally compiled.

I guess the Raknet code was the one that needed the MasterServer header and compiled using that.

The problem I have now is that the connection tester doesn’t seem to be working at all, the process gets launched and it says it’s initialized in the console however every time I try to connect to it gives me unknown network error, and the log on the console doesn’t update like it does with the master server.

One strange thing I noticed is that when I call TestConnection a connection is opened to the master server but not to the connection tester.

I did changed the connection tester port and IP on my game to the IP of my server and the port it says in the console when I launch the connection tester.

Could it be that the code didn’t compiled correctly? Any thing I should try? I haven’t changed the default ports the connection tester uses, should I change that?

All the the relevant ports are opened on the server the same way I’m doing it for the master server.

I found the solution to my problem after looking at the code for the connection tester, turns out the IP and port of the nat facilitator are hardcoded to the default values, So I needed to change this values to the ones for my server, now everything works.

The connection tester project still has some issues that might confuse other users, just a heads up for any Unity guys that might be reading this.

all you have to do with the compile error about MasterServer.h is add/existing files by right clicking on the project. Then go and add the MasterServer.h file from the MasterServer project - don’t copy it in, just leave it as a reference and it sould light right up

Make sure to change the IP like the first reply says.