Set up a dedicated gaming server for the most popular games. Don’t let your computer’s parts off the hook just because they were swapped out in an upgrade; put them back to work! Setting up your own private server for Lineage 2 using L2J Server. In private server - on 3:49 PM. Below are a compiled links of articles from L2J wiki (in case you had trouble finding it) which is essential to setup your own Lineage 2 private server. The latest expansion pack for L2 is Gracia. Setup Preconditions.
- Extract your Lineage2 Server (170MB+) files onto a directory. Extract L2server.zip (1.81 MB) into your Server's root directory that contains CacheD, L2LogD, L2NPC, NewAuth, etc. Overwrite all the files when prompt. Extract DBScript.zip (103.4 KB) into your Server's root directory that contains the folder DBScript and override all the files.
- When installing MSSQL. Make sure you take note of the account/user login and password!! You'll need them for later. Here's a quick walkthru installation guide:
- Make sure you choose 'Local Computer'
- Then 'Creater a new instance of SQL Server, or install Client Tools' //or something similar. If you don't have this option prompt. Don't worry about it. You get this if you're installing again for the 2nd time.
- Make sure you pick 'Server and Client Tools' along the way in the installation process.
- It'll automatically check 'Default' for instance name or you can specific one. It doesn't really matter which one you pick as long as you remember the instance name.
- Along the way in the installation process, make sure you pick an option that uses Both MySQL Login and Windows Login.
- Go to your Lineage 2 Server folder.
- In each of these following folders: L2LogD, CacheD, NewAuth, PetitionD, L2NPC, and L2Server, they contain a configuration file that is either a *.ini or *.txt document. You don't need to change anything and make sure they're set at 127.0.0.1. The only time you would need to change them is if you are loading them from multiple computers! It doesn't matter if you even have a router! As long as you are loading all 6 Process from the same machine, you just need to keep most of the IP adress as 127.0.0.1.
- Change the following lines in config.txt under 'NewAuthetc' folder:
- DevServerIP='24.68.124.198' //Change this to your Internet IP address, your WAN, the IP that you get from your ISP. Visit www.whatismyip.com to find it.
- logdip='127.0.0.1' //Change this to what you used for your L2LogD.ini address.
- Change the following lines in l2cache.ini under CacheD folder:
- address='127.0.0.1' //Change this only if you plan to load this from a different computer! Adjust it to the ip of that computer! If PC2 has IP of 192.168.0.121 and it is planning to load L2CacheD.exe there. Then change it, otherwise leave it as 127.0.0.1!
- Change the following lines in l2logd.ini under L2LogD folder:
- address='127.0.0.1' //Same thing as L2CacheD.ini
- Change the following lines in config.txt under PetitionDetc folder:
- webAuthServer='127.0.0.1' //Same thing as L2CacheD.ini
- Change the following lines in L2NPC.ini under L2NPC folder:
- //Change them accordingly to what you adjusted for them. If L2LogD.ini has ip of 192.168.0.121 on PC2. Then change that IP in L2NPC.ini to that. You are pointing L2NPC.exe to connect to the other Server Processes. Leave the ports alone!
- [CacheD]
- address='127.0.0.1'
- port=2008
- [map]
- directory='map'
- [db]
- address='127.0.0.1'
- user='gamma' //This should be your MSSQL Login (I used sa since it sets up the sa account for you when you install SQL and sa has all permissions)
- password='l2online' //This should be your MSSQL Password
- [Setting]
- ;Country=0 KR
- ;Country=1 US
- ;Country=2 JP
- ;Country=3 TW
- ;Country=4 CN
- Country=1 //Change this accordingly to what 'CLIENT' version you allow to connect!
- ExceptionMailing=false
- MailServer=ncs-mail.ncsoft.co.kr
- Change the following lines in l2server.ini under L2Server folder:
- //Again, the same explaination from L2NPC.ini config applies here as well!
- [LogD]
- address='127.0.0.1'
- port=3999
- [petitionD]
- address='127.0.0.1'
- port=2107
- WorldId=1 //Leave this as 1 if you don't plan to run multiple servers! WorldId = ServerId in lin2db (will be explained furtherdown). If they're not the same number, your server won't be connecting to the same gameworld or won't find one to connect to!
- [size=150][color=#FF8000]Setting up Database Scripts[/color][/size]
- Important! - If you are running MSSQL Server on the same machine that's hosting the server. Leave everything at 127.0.0. and 127.0.0.1!! The only time you would need to change this is if you're trying to connect to a different computer running Lineage 2 Chronicle One Server! You would then need to adjust it accordingly to that computer's IP!
- Important!! #2 - If you already have an existing mysql db installed and are changing connection to connect to a different MSSQL Server (say to your friend's computer). You will need to update your MSSQL database information again. By doing this, make sure you export all your previous data! Because if you input the new IP changes, everything from the previous data will be lost! All character and account information are stored in lin2db and lin2world!
- find
- set @conn_str = '127.0.0.' + @world_id + '';'sa';'l2online'
- change 127.0.0. to the first 3 sets of numbers of your internal IP (If your internal IP is 192.168.0.121 then enter 192.168.0.)
- change 'sa' as your SQL database account
- change 'l2online' as your SQL database password
- there are 3 lines you have to change
- find
- 'SQLOLEDB', '127.0.0.1';'sa';'l2online'
- change 127.0.0.1 to your internal IP
- change 'sa' as your SQL database account
- change 'l2online' as your SQL database password
- there is only 1 line you have to change
- save and close the file.
- open lin2world_20040609_all.sql under DBScript
- find
- set @conn_str = '127.0.0.' + @world_id + '';'sa';'l2online'
- change 127.0.0. to the first 3 sets of numbers of your internal IP (If your internal IP is 192.168.0.121 then enter 192.168.0.)
- change 'sa' as your SQL database account
- change 'l2online' as your SQL database password
- there are 3 lines you have to change
- [color=#FF8000]Setting up MSSQL Database for Lineage 2[/color]
- [img]http://img214.imageshack.us/img214/3540/16pj3.jpg[/img]
- Make sure the SQL server is running, Open Service Manager (found in start menu) and if the start/continue button isn't greyed out click it.
- Open SQL Server Enterprise Manager (start menu again), double click SQL Server Group, double click (local) the click OK. Double click on databases folder, to make a database right click and select New Database. Make the following databases: lin2world, lin2comm, lin2log, lin2report, lin2db, petition
- If you used 'sa' as your account you dont have to give permissions cause they already are set, if you used another account you have to make it and give permissions to the databases.
- Go to the tools menu, then click SQL Query Analyser.
- Change the database drop down menu on the top bar to lin2world. Then click the Load SQL Script button (Also on the top bar). Choose lin2world_20040609_all.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Change the database drop down menu on the top bar to lin2comm. Then click the Load SQL Script button (Also on the top bar). Choose lin2comm_new.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Change the database drop down menu on the top bar to lin2log. Then click the Load SQL Script button (Also on the top bar). Choose lin2log_20040416.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Change the database drop down menu on the top bar to lin2report. Then click the Load SQL Script button (Also on the top bar). Choose lin2report_20040416.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Change the database drop down menu on the top bar to lin2db. Then click the Load SQL Script button (Also on the top bar). Choose lin2db_AuthDBSchema.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Change the database drop down menu on the top bar to lin2db. Then click the Load SQL Script button (Also on the top bar). Choose lin2db_update.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Change the database drop down menu on the top bar to petition. Then click the Load SQL Script button (Also on the top bar). Choose petition.sql (Located in the DBScript folder). Click the Parse Query button (blue check mark icon) then once that is done click Execute Query (The green triangle icon). After this is complete go file save.
- Close SQL Query Analyzer and open SQL Server Enterprise Manager. Under databases click lin2db then double click the tables icon. Right click on the server table go open table, then select return all rows. Add the following information:
- [img]http://img218.imageshack.us/img218/2338/44wa1.jpg[/img]
- To add information in for the example [ id = 1 ] you would put the number 1 in the id column:
- id = 1
- name = same as the worldname in l2server.ini
- ip = your external IP
- inner_ip = your internal IP
- ageLimit = 0
- pk_flag = 0 PK not allow; 1 allow
- kind=0
- port=7777
- Close the SQL Server Enterprise Manager.
- [size=150][color=#FF8000]DSN Configuration[/color][/size]
- Open control panel, click administrative tools, then double click Data Sources (ODBC).
- [img]http://img214.imageshack.us/img214/7410/57mw.jpg[/img]
- Choose the File DSN tab then click the add button. Select SQL Server and click next, type lin2world. Leave description blank and select (local) in the server dropdown menu then click next. Leave it on windows NT configuration and click next. Check the box next to Change Default Database to, then select the lin2world database and click next, then click finish and ok.
- Click add button again. Select SQL Server and click next, type petition. Leave description blank and select (local) in the server dropdown menu then click next. Leave it on windows NT configuration and click next. Check the box next to Change Default Database to, then select the petition database and click next, then click finish and ok.
- Click add button again. Select SQL Server and click next, type lin2comm. Leave description blank and select (local) in the server dropdown menu then click next. Leave it on windows NT configuration and click next. Check the box next to Change Default Database to, then select the lin2comm database and click next, then click finish and ok.
- Click add button again. Select SQL Server and click next, type lin2log. Leave description blank and select (local) in the server dropdown menu then click next. Leave it on windows NT configuration and click next. Check the box next to Change Default Database to, then select the lin2log database and click next, then click finish and ok.
- Click add button again. Select SQL Server and click next, type lin2report. Leave description blank and select (local) in the server dropdown menu then click next. Leave it on windows NT configuration and click next. Check the box next to Change Default Database to, then select the lin2report database and click next, then click finish and ok.
- click add button again. Select SQL Server and click next, type lin2db. Leave description blank and select (local) in the server dropdown menu then click next. Leave it on windows NT configuration and click next. Check the box next to Change Default Database to, then select the lin2db database and click next, then click finish and ok.
- [size=150][color=#FF4000]System INI Configuration[/color][/size]
- Go to your control panel (from start menu) then click the system icon, advanced tab, under performance click settings, then choose the advanced tab again and click the change button under virtual memory. Set Custom size with minimum set at 1024 and maximum set at 4096
- You must do this to run all the NPC's.
- Locate your boot.ini file in C: Drive. You'll need to change folder view setting to include hidden and system files or else you won't be able to find it.
- Open C:Boot.ini in notepad, the last line should look like:
- multi(0)disk(0)rdisk(0)partition(1)WINDOWS='Microsoft Windows XP Professional' /nodetect
- or something similar, add the /3GB tag at the end. It should look like this (if your line was the same as the line above)
- multi(0)disk(0)rdisk(0)partition(1)WINDOWS='Microsoft Windows XP Professional' /nodetect /3GB
- Reboot your computer
- [size=150][color=#FF4000]ASP Account Registeration System[/color][/size]
- Extract L2Asp.zip to your C:Inetpubwwwroot (or wherever you have as your IIS root directory, this is default)
- If you don't have Internet Information Services installed. Then you'll need to find your Windows XP Pro CD. Go to Add/Remove Program and select 'Add/Remove Windows Components' -Select Internet Information Services from the list and install it.
- Open the conn.asp (from the directory that you just extracted to) with notepad and change the following:
- ms_sql_server_host_addr = '127.0.0.1' //This should be set to your WAN IP. Leave it as 127.0.0.1 if you want to just manually make accounts on your computer for your friends.
- sql_server_username = 'sa'
- sql_server_password = 'l2online'
- save and close the file.
- Open control panel, click administrative tools, then double click Internet Information Services. Click on local computer then click websites. Right click default websites and go properties. Click on the documents tab and then the add button. Under default document name type index.asp then press OK. Select index.asp and use the up arrow to move it to the top of the list then press OK.
- [img]http://img218.imageshack.us/img218/7937/67qx1.jpg[/img]
- Close IIS and open internet explorer and type http://127.0.0.1 (where 127.0.0.1 is your internal IP)
- Once the website comes up click register. Then enter a username and a password and click next.
- You have now made an account on your server.
- [size=150][color=#FF4000]Client Setup[/color][/size]
- Install your Lineage 2 Chronicle ONE Client (either download it or off a CD). Chronicle 2 Client will NOT WORK on C1 Private Server!
- If you want things to be in english, install the US client and unzip l2cnpatch.zip, c2textures and l2cnmeshes.zip to your /System/ directory.
- Unzip Fixed15-10-2004html.zip to your server directory (L2serverhtml) and overwrite all the files.
- Extract l2decrypt.zip to your computer (doesnt matter where). Run the decrypter and decrypt the L2.ini file. Then open up L2.ini file with notepad.
- 'L2.ini'
- MapExt=unr
- EXEName=l2.exe
- SaveExt=usa
- Port=7777
- Class=LineageWarrior.MFighter
- ServerAddr=69.105.31.9 //Change it to your WAN IP
- IsL2NetLogin=True
- IsL2Seamless=True
- Change the IP to your WAN IP. The IP that's the same as NewAuth and the one in MsSql Lin2db Server entry.
- Re-encrypt the file with v212 or v211 setting. Copy it to your Client's /System/ Folder and override the L2.ini file there. When you start up your client. Make sure you are using the L2.exe from the /System/ Folder and not the Lineage2.exe in /Lineage 2/ Folder
- [size=150][color=#FF4000]Running the Server[/color][/size]
- File DB = lin2log
- password = your SQL password
- File DB = lin2world
- password = your SQL password
- File DSN = lin2db
- password = your SQL password
- Server = (local)//or the name of the server for your MySQL Server Agent
- password = your SQL password
- L2Server.exe
- If you want to free up some system resources. You can shutdown Petition Server once everything is fully loaded. Some people claim L2LogD Server is also not require to run. You can try shutting it down, but I don't recommend it, since CacheD, L2AuthD, L2Server, and L2NPC requires it when loading. L2Server.exe must be running on the same machine with L2NPC.exe! You cannot load them on seperate computers for some stupid reason!
- [size=150][color=#FF4000]Setting up Administration Account / GM Characters[/color][/size]
- For this to work you must have created an user account.
- Open SQL Server Enterprise Manager (start menu again), double click SQL Server Group, double click on your local server then click OK. Double click on databases folder and select lin2db. Click on tables then find user_account, right click on it and select Open Table then Return All Rows. Note the name and uid of the account that you want to make a gm.
- Go back to databases and this time select lin2world. Click tables and select builder_account, right click select Open table then Return All Rows. Under account name enter the name of your character (that you noted before in user_account) and under default builder enter 1 and under account_id enter the uid you noted from user_account.
- When you make a new character on this account it will have GM powers, the commands are located in script/BuilderCmdAlias.txt and are used //command so to disable invisible mode you would type in: //hide off
- To give a current character GM powers, Go back to databases and select lin2world. Click tables and select user_data, right click select Open table then Return All Rows. All the character on the server will be listed, you can just change the builder value from 0 to 9 for any character you want to give GM powers.
- [size=150][color=#FF4000]Editing the Server / Gameplay Properties[/color][/size]
- the things you can edit are in the /scripts folder.
- For EXP/SP/Adena rates and drops you can edit: npcdata.txt
- For GM Commands you can edit: BuilderCmdAlias.txt
- For Item stats you can edit: Itemdata.txt
- For Blacksmith sell lists you can edit: multisell.txt
- For NPC spawn locations you can edit: npcpos.txt
- For Recipe information you can edit: recipe.txt
- For Teleporters and store you can edit: ai.obj
- Before you begin editting anything. A rule of thumb is ALWAYS BACK UP YOUR FILES.
- --End Guide.
Set up a dedicated gaming server for the most popular games
Don’t let your computer’s parts off the hook just because they were swapped out in an upgrade; put them back to work! Half of the top-ten most-played games on Steam come with the option to customize your entire gameplay, right up through running your own dedicated server. Are you going to sit back and play the game how somebody else envisioned it, or are you going to grab the goat by the horns, run your own server, and make it personal?
Why run the server on your LAN instead of remote hosting (rental server)?
There are many reasons why people rent a server from a remote provider; ranging from bandwidth availability, dedicated support, or even to eliminate any latency advantages between player and host.
Remote hosting can sometimes be a headache. Some server rental hosting services don’t consistently update the site’s server software for many days after a game update rolls out. By hosting the server yourself on a separate machine, you’re able to take command and update it as soon as you like, and the cost is only in the electricity required to run the system. All you need is to save the parts you replace when you upgrade, and build a new system out of it. Sure, it may be old tech, but most dedicated servers for games don’t require a lot.
What is the benefit of running your own dedicated server?
A dedicated server is often more stable than the game client itself. If something goes wrong on your gaming machine and you need to close the game or reboot your system, those that are connected to the server can still play and enjoy the game.
Remote Management (VNC)
Sometimes, the built-in server admin tools for games aren’t enough. That’s where remote management comes in. There are many options to remotely control the server. The most popular VNC program is TeamViewer, followed by the Microsoft Remote Desktop Connection.
For modern Windows systems, there is the option to use the free Remote Desktop Connection software from Microsoft. RDC lets you connect to another computer using login credentials as if you were physically at the computer. As reported at Windows Central (http://www.windowscentral.com/you-do-not-need-activate-windows-10), Microsoft has loosened their grip on un-activated copies of Windows 10.
To find out more about the Microsoft Remote Desktop Connection, visit Microsoft’s RDC page: http://windows.microsoft.com/en-us/windows/remote-desktop-connection-faq.
Voice Chat Servers
Maybe you’re playing a multiplayer game that doesn’t allow for private dedicated servers. Voice chat has come to be an expected feature of most multiplayer games these days, and server requirements have changed very little in the past decade. If you can stream on Twitch or even video chat on Skype, you have more than enough bandwidth for hosting a voice chat server for your guild/clan/group. Assume no greater than 64Kb/s per user connected (10 users = 640Kb/s upload needed).
Common Games
Minecraft
Obtain the server software from the official site at (http://minecraft.net/download). This program will create additional files and folders in the location that you run it from. It is advised to run it from a new folder (e.g., D:Minecraft Server)
When you first run the server, it will create the following: /logs/, eula.txt, and server.properties. Open eula.txt, read it (if you wish), then change the last string from eula=false to eula=true, and save it.
Run the server again and the rest of the server files will be generated.
Edit server.properties using a text editor such as notepad, and make any changes you need. For a full list of what each property does, visit the wiki: http://minecraft.gamepedia.com/Server.properties
Note/change the port setting for router config: “server-port=25565” (default line 11).
Steam-based games
Check if the game you want to host is on the list of dedicated servers on Steam: https://developer.valvesoftware.com/wiki/Dedicated_Servers_List.
This list will provide information on whether you can obtain the dedicated server software by using the SteamCMD program, or from the Steam Client. It will also indicate if the game allows for anonymous login or if you have to purchase the game in order to access the dedicated server software.
SteamCMD
SteamCMD is a command line program that allows you to install software such as dedicated servers without the need to install the Steam Client (https://developer.valvesoftware.com/wiki/SteamCMD).
Use of SteamCMD assumes that you know the app ID of the program you wish to download or update.
The easiest way to use SteamCMD to install your dedicated server is to use SteamCMD-GUI (https://github.com/DioJoestar/SteamCMD-GUI/releases). This program allows you to select all of the desired variables and then install in one click. It even allows for running most Source servers. Usage of the SteamCMD-GUI tool is fairly straightforward. You will need to install the SteamCMD program separately before use; there is a quick button in the GUI tool to do this.
For Steam games with dedicated server software that does not have its own independent app ID, check in the game’s installation directory: (SteamInstall or SteamLibrary)SteamAppscommon(Game Name) or at the game’s website or wiki.
Counter-Strike: Global Offensive
Acquisition: SteamCMD only, Anonymous-allowed. App ID: 740.
Installation over SteamCMD-GUI works well, but running the server will require that you become acquainted with the intricacies of the Source Dedicated Server Software (srcds.exe), which runs all Source engine servers.
Installation over SteamCMD-GUI works well, but running the server will require that you become acquainted with the intricacies of the Source Dedicated Server Software (srcds.exe), which runs all Source engine servers.
For CS:GO Dedicated Server beginners, the pyr0s-csgo-server-launcher (http://code.google.com/p/pyr0s-csgo-server-launcher/) batch file mostly automates the server configuration and launch, making it easy to step into running your own CS:GO server.
If you want to further customize your server, we recommend reading further on CS:GO Dedicated Server configuration at the Valve Developer wiki (https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers).
ARK: Survival Evolved
Acquisition: SteamCMD and Steam Client. App ID: 376030 (note: this is not listed on the DS list page). All other guides will say to download app ID 346110, which requires steam login on SteamCMD and game purchase.
This server is best managed using the free Ark Server Manager (http://forum.arkservermanager.com/). This program will manage just about every aspect of the server, including SteamCMD installation and updates. Ark Server Manager uses the 376030 ID, meaning that you do not need to worry about entering your logic credentials to a third-party program. If you do not wish to use a GUI to run the server, the unofficial wiki for the game provides the best information on how to set up the server manually at http://ark-survival-evolved.wikia.com/wiki/Dedicated_Server_Setup.
This server does use a relatively high amount of resources.
Team Fortress 2
Acquisition: SteamCMD Only. App ID: 232250.
As a Source game, the configuration is similar to CS:GO; support is more limited, though.
We recommend that users new to running a TF2 server visit the wiki page to get started quickly.
Unlike CS:GO, this server is a breeze to run from the SteamCMD-GUI program, as the majority of settings that you will want to modify will be located in the server.cfg file (you will need to create this file in the fcfg folder in the TF2-DS installation. An easy-start example of this file is listed on the wiki: https://wiki.teamfortress.com/wiki/Dedicated_server_configuration#Example_Server.cfg_for_TF2_dedicated_server ).
As a Source game, the configuration is similar to CS:GO; support is more limited, though.
We recommend that users new to running a TF2 server visit the wiki page to get started quickly.
Unlike CS:GO, this server is a breeze to run from the SteamCMD-GUI program, as the majority of settings that you will want to modify will be located in the server.cfg file (you will need to create this file in the fcfg folder in the TF2-DS installation. An easy-start example of this file is listed on the wiki: https://wiki.teamfortress.com/wiki/Dedicated_server_configuration#Example_Server.cfg_for_TF2_dedicated_server ).
Space Engineers
SteamCMD, Steam Client, Automatically downloaded with game client to DedicatedServer(64) and in .zip form in Tools App ID: 298740.
Launch SpaceEngineersDedicated.exe as Administrator (or just click the [Run as Admin!] Button inside the program) from the folder that best fits your system: DedicatedServer for x86 or DedicatedServer64 for 64bit.
If you want to run the server strictly in console mode only, then select Local / Console and [Continue to server configuration]. This will let you set up the server parameters just as you would in the client, but with a few more fancy tricks.
If you want to launch the server as a system service with the configuration window open (not required for server to start or stay running), then click [Add new instance] and give a name to the service so that you can recognize it. If you run a new service instance, it will automatically configure to run when windows starts. You can add many services; each is able to control many different world saves and settings.
Terraria
No separate App ID; automatically downloaded with the game client. You can obtain the server software from the developers without downloading the game, as well as a third-party GUI tool for the server—visit the official Terraria Wiki Server page for more information: http://terraria.gamepedia.com/Server.
Terraria App ID: 105600—requires SteamCMD login to download.
Make sure you install the prerequisite software: XNA Framework 4.0 and .NET 4.0 Framework (Win10 needs only XNA).
Edit the serverconfig.txt to your liking and run start-server.bat; the server program is very straightforward and easy to use for anyone who has played the game.
For a dedicated server on a separate machine, it is advised to ignore the –steam launch option for this game, as it will only work if TerrariaServer.exe is launched via Steam Client (uses the Join Game function from user interactions to bypass port forwarding).
Router Configuration
Port Forwarding
If you aren’t familiar with port forwarding, or have questions regarding setting up port forwarding on your router, find specific information for your setup at http://portforward.com.
Default ports:
Teamspeak: UDP in (voice) 9987, TCP in (file transfer) 30033, TCP in (serverquery) 10011, TCP in (TSDNS) 41144.
Source Dedicated Servers (CS:GO, TF2, etc.): 27015 (TCP/UDP), 27020 (UDP) Note: add in any other ports you may use for additional servers (e.g., 27015 for CS:GO, 27016 for TF2, etc.)
Terraria: 7777
ARK: Survival Evolved: 7777, 27015, 32330
If your router supports dynamic DNS, it is advised to set that up. If not, there are alternative methods.
Dynamic DNS (DDNS)—hosting your dynamic IP at a domain name
Instead of handing out your IP address to friends, give them an easy-to-remember domain name built to always correctly point to your IP address. Most games allow for domain name connections instead of IP addresses.
Dyn (formerly DynDNS) shut down free services in 2014, leaving many home users to go find a new provider. Luckily, many other companies have stepped up to the plate to welcome those looking for a free, simple Dynamic DNS service for their projects. Some modern routers even come with an account to their proprietary DDNS hosting that you configure on your router directly.
Here’s a short list of free services that you can use for your home server:
FreeDNS (https://freedns.afraid.org/)
DtDNS (https://www.dtdns.com/)
DuckDNS (http://duckdns.org/)
No-IP (https://www.noip.com/)
EntryDNS (https://entrydns.net/)
Get Building!
Many of us upgrade our computers and wonder what to do with the parts that we just replaced. It’s very often the case that those parts end up collecting dust on a shelf or in a box. It’s time to put them to good use by turning them into another rig. If you've ever had other people connect to you to play a game, you've hosted a server. Using dedicated server software on a remote machine is just the same, except that you're freeing up system resources.