Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
1. You friends need to know what your server IP address * is. so `ip addr` will give you a list of devices and a bunch of network info. It depends how your network card driver names itself, but look for something like eth0. Give that IP address to them. That's how they can connect directly. *If you are behind a router see below
2. Your game will run on a specific port. Something like 5000 or 30000. Something ridiculous. You need to make sure the servers firewall is not blocked (set to deny). I believe Ubuntu uses ufw now. So something like `sudo ufw allow 5000` firewall docs[ubuntu.com] You may also need to specify tcp or/and udp but that depends on the game. If you expose both, I don't think anybody is going to die.
3. If you are behind a home router. Like your home wireless hotspot. You'll have to also open the port there and make sure it forwards to your server IP. If this is the case, then You no longer give your friends the ip address from step one. You now have to look at the WAN ip address, give that ip to your friends. And forward the desired port traffic (like 5000) to your server ip address you got from step 1. These days, the routers have pretty easy UIs. So just go to the admin section and look for port forwarding. The router can accept on a port number and redirect to the different port number on the server. Unless you need that, it's best to just keep the external port and internal port the same.
#Remember, port 5000 is just an example port, it could be anything. I don't know what port Start Dew Valley listens on, or what other game you might want to host, but which ever port they default to, it's best to just stick with those port numbers.
You could also setup systemD service to automatically start your game service on reboot, but that's probably a stretch goal for now.
I'm just a software dev. Usually at the companies I work for there are actual server guys to do all the caring about server stuff. So if a server guy jumps in and tells how to properly do everything, please defer to him. But, at minimum this should get you going in the right direction.
https://www.gamingonlinux.com/articles/need-an-easy-way-to-manage-a-linux-game-server-linuxgsm-is-great-and-recently-passed-100-supported-titles.15249
LinuxGSM is a Game Server setup helper tool. It uses scripts to automate the installation and configuration of each of over 100 game servers (somewhat like Lutris does for Wine games)