Aurélien Rommelaere @arommelaere

Run a compiled C# .NET console executable on ubuntu unix with mono

Introduction:
I had my websocket videogame multiplayer server wrote in C# for better compatibility and commun Socket Data classes symlinked to my Unity game. For cost reason I wanted to move it to DigitalOcean in my ubuntu unix droplet.

Here the steps I followed to make the executable successfully works:

Firstly, I had to give the execution right on my .net executable
chmod +x Server.exe

Next step consist to install mono and libmono
apt install mono-runtime
sudo apt-get install libmono-system-servicemodel4.0a-cil


I then had to unblock the port (lets say 5151 for example):
sudo ufw allow 5151

I just had to run the server executable it via:
./Server.exe

Finally, I tested that the port through
https://www.yougetsignal.com/tools/open-ports/

Aurélien Rommelaere - Article content is under copyright and strictly forbidden for duplication or modification.