

Once done, save the changes made to the 01-netcfg.yaml file. Here’s an example configuration where gateway4 is your router IP and addresses refers to your preferred static IPv4 address: # This file describes the network interfaces available on your system

For example, the Ubuntu 18.04 configuration can be accessed by pasting this command into Terminal and pressing Enter: sudo nano /etc/netplan/01-netcfg.yaml To set up a static IP, you will need to edit the primary network configuration file. To check the router IP on Linux based systems, open Terminal and enter the following command: route -n | grep "^0.0.0.0" | cut -d ' ' -f 10 The router’s IP address will be shown on the Default gateway line.įinding the Router Address and Setting up a Static IP on Linux Press Windows + R and enter CMD to open the command prompt. Specify which TCP and UDP ports to forward.įinding the Router Address and Setting up a Static IP on Windows.Even though each router has a different interface, the steps will be similar. With the firewall set up and incoming network requests allowed, proceed to create a port forward rule on your router.
#Cheap modded minecraft server hosting how to#
We recommend checking out our tutorial on how to configure your Ubuntu firewall. Unlike Windows or Mac, Linux comes with a more complex firewall. Make sure that the Allow incoming connections option is checked.
