You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you understand basic [IP addressing](../networking/ip-address.md).
9
+
{% endhint %}
10
+
11
+
By default, LinuxGSM will use the [0.0.0.0](../networking/ip-address.md#0.0.0.0) meta-address. This behavior will allow the game server to bind to **all** interfaces and allow LinuxGSM to [quer](../commands/monitor.md)[y](../commands/monitor.md) all available IP addresses. If there are multiple IP addresses available, [details](../commands/details.md) will display 0.0.0.0. 
12
+
13
+
Internet IP: LinuxGSM will try to gather the server's internet IP address to be shown in [details](../commands/details.md).
14
+
15
+
Specific IP: If a specific IP address needs to be set it can be done using the `ip` setting in the [LinuxGSM ](linuxgsm-config.md)or [game server ](game-server-config.md)config files. Depending upon the game server this will allow it to _bind_ to a specific IP address
16
+
17
+
Display IP: If you want to change the IP address displayed in alerts you can use the [displayip](../alerts/#display-ip).
Copy file name to clipboardExpand all lines: networking/ip-address.md
+28-33Lines changed: 28 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,49 @@ Depending upon the configuration of your server you may need to be more aware of
6
6
This guide is not designed to be an in-depth guide to networking, instead focusing on parts relevant to game servers.
7
7
{% endhint %}
8
8
9
-
## Internet Server vs. Local Server
9
+
## Network Locations
10
+
11
+
Your game server can be hosted online using a server provider such as Linode or on a [local network](../configuration/local-home-server.md) at home for either local-only LAN parties or allowing online players in through your router. 
12
+
13
+
### Internet (Public)
14
+
15
+
If your server is hosted on the internet using a server provider you should have been allocated a public internet IP address that will be accessible by everyone on the internet. 
16
+
17
+
### Local Networks (Private) 
10
18
11
-
Your game server can be hosted online using a server provider such as Linode or on a [local network](../configuration/local-home-server.md) at your house for either local-only LAN parties or allowing online players in through your router. 
19
+
Using a home server or virtual machine on your desktop is a great way to get started with LinuxGSM. However, a local network (LAN) may require a better understanding of networking equipment, how local IP addressing works, and technologies such as [DHCP](https://en.wikipedia.org/wiki/Dynamic\_Host\_Configuration\_Protocol) and [NAT](https://en.wikipedia.org/wiki/Network\_address\_translation).
20
+
21
+
When a server is hosted on a local network it will be given a private IP address that is only accessible to other devices on your local network. This is fine if you want to get friends around host a game server for a good old-fashioned LAN party. But if you want to allow online players access to your local game server you will need to configure your home router's firewall and setup port forwarding using NAT.
12
22
13
23
## Network Interfaces
14
24
15
-
All computers will have some sort of network interface (ethernet, fiber optic, wi-fi) to connect to a network. On Linux, you can see your server's interfaces by using the following command.
25
+
All computers will have some sort of physical or virtual [network interface](https://en.wikipedia.org/wiki/Network\_interface) (ethernet, fiber optic, wi-fi) to connect to a network. On Linux, you can see your server's interfaces by using the following command.
16
26
17
27
```
18
28
ip -o link show
19
29
```
20
30
21
31
Typically you may see (depending on distro) a `localhost` loopback interface and an `eth0` interface. The `eth0` (Ethernet) is used for your standard copper network cable and is what you will likely see. If you have multiple interfaces you may also see `eth1`, `eth2`, etc. More advanced setups can choose to bond together interfaces to work as one to increase bandwidth and resilience. 
22
32
33
+
## IP Address
34
+
35
+
An IP (Internet Protocol) address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication. It serves two primary functions: host or network interface identification and location addressing. IP addresses enable devices to send and receive data within a network, facilitating communication and data transfer across the Internet.
36
+
37
+
1.**LAN IP Address:**
38
+
* Example: 192.168.1.10
39
+
* Explanation: In a typical home or office network, devices are often assigned private IP addresses within the range defined by the Internet Engineering Task Force (IETF) for private networks. The "192.168.1.10" address is an example of a private IP address commonly used within a LAN. Each device on the local network would have a unique private IP address for internal communication.
40
+
2.**Internet IP Address:**
41
+
* Example: 203.0.113.45
42
+
* Explanation: Internet IP addresses, also known as public IP addresses, are assigned by Internet Service Providers (ISPs) and are globally unique. The "203.0.113.45" address is an example of a public IP address. Websites, servers, and other devices connected to the Internet have public IP addresses that are used for communication between different networks on a global scale. These addresses are essential for routing data across the Internet.
43
+
23
44
### Virtual Private Networks
24
45
25
46
Some servers may be connected to a VPN (Virtual Private Network) using software such as Wireguard or OpenVPN. This normally creates its own interface that gets allocated an IP address. It is possible to use a VPN to create a private connection to a LAN server
26
47
48
+
## Tunneling
49
+
50
+
A relatively new technology is starting be become popular that allows applications hosted (think self-hosted web applications) on a private network to be accessed on the internet via a network "tunnel". This typically involves running a tunnel client in the private network that points to a specific internal IP and port. This bypasses the need to port forward on a router. Currently, there is a service called [playit.gg](https://playit.gg/) that is specifically designed for game servers. However other solutions may work.
51
+
27
52
## IP Address Allocation
28
53
29
54
Each network interface can be allocated an IP address either manually on the server or via DHCP. If you are using a provider an internet IP address is normally automatically allocated to your server. For a local network, your router DHCP server will allocate a local IP address. A local IP address can be reserved using DHCP or you can manually set an IP on the server.
@@ -49,33 +74,3 @@ The 0.0.0.0 IP is a meta-address means non-specific or all addresses. When you s
49
74
{% hint style="success" %}
50
75
Unless a specific IP address is required the game server IP can be set to 0.0.0.0.
51
76
{% endhint %}
52
-
53
-
## Network Locations
54
-
55
-
### Internet (Public)
56
-
57
-
If your server is hosted on the internet using a server provider you should have been allocated a public internet IP address that will be accessible by everyone on the internet. 
58
-
59
-
### Local Networks (Private) 
60
-
61
-
Using a home server or virtual machine on your desktop is a great way to get started with LinuxGSM. However, a local network (LAN) may require a better understanding of networking, how local IP addressing works, and technologies such as DHCP and NAT.
62
-
63
-
When a server is hosted on a local network it will be given a private IP address that is only accessible to other devices on your local network. This is fine if you want to get friends around host a game server for a good old-fashioned LAN party. But if you want to allow online players access to your local game server you will need to configure your home router's firewall and setup port forwarding using NAT.
64
-
65
-
#### Tunneling
66
-
67
-
A relatively new technology is starting be become popular that allows applications hosted (think self-hosted web applications) on a private network to be accessed on the internet via a network "tunnel". This typically involves running a tunnel client in the private network that points to a specific internal IP and port. This bypasses the need to port forward on a router. Currently, there is a service called [playit.gg](https://playit.gg/) that is specifically designed for game servers. However other solutions may work.
68
-
69
-
## How LinuxGSM handles IP addresses
70
-
71
-
By default, LinuxGSM will use the 0.0.0.0 meta-address. This behavior will allow the game server to bind to all interfaces and allow LinuxGSM to [quer](../commands/monitor.md)[y](../commands/monitor.md) all available IP addresses. If there are multiple IP addresses available, [details](../commands/details.md) will display 0.0.0.0. 
72
-
73
-
Internet IP: LinuxGSM will try to gather the server internet IP address to be shown in [details](../commands/details.md).
74
-
75
-
Specific IP: If a specific IP address needs to be set it can be done using the `ip` setting in the [LinuxGSM ](../configuration/linuxgsm-config.md)or [game server ](../configuration/game-server-config.md)config files. 
76
-
77
-
Display IP: If you want to change the IP address displayed in alerts you can use the [displayip](../alerts/#display-ip).
0 commit comments