GoodAccess logo
Go back
Go back

Usage and Differences between Static and Dynamic IP Address

The Internet Protocol (IP) enables communication over computer networks, a set of addressing and routing standards that ensure different devices can talk. Every internet-enabled device has an IP address so that “IPs” play a crucial role in the interconnected world. This article looks at the difference between static and dynamic IP addresses and how to use them.

In a local network (LAN), devices inside this specific location are assigned a unique IP address manually or automatically by the DHCP server. These addresses are selected from a pool of internal IP addresses reserved for the internal LAN and thus invisible to the outside world. This setup comes with a catch. The local address is unique only in the specific location, but the same range is used in different LANs. A device has to use a unique identifier to communicate on a network. Therefore in the case of connecting to the global Internet, a public IP address has to be used.

Network Address Translation (NAT) solves this problem on the gateway (router) by ensuring the device is provided with a public IP address. The decision lies on the administration to choose whether a particular device needs a dynamic or static IP.

But before we dig deeper into what affects the usage of static and dynamic IP, let's explain what IP address is first.

What Is an IP address?

An IP (Internet Protocol) address is a numerical identifier assigned to devices communicating on a computer network (LAN, WAN, Internet). It comprises four 8-digit binary numbers (0,1), for simplification presented in a decimal range of 0-255 separated by periods (example An IP address is a unique differentiator that we can imagine as a physical street address. To make things easier, when users access web services, IP addresses are translated to domain names by DNS servers. Thanks to DNS no one needs to type a series of numbers into the url and just type the name of the desired page.

Today, the most widely used IP version is IPv4, but the newer version IPv6 is increasingly more popular since it offers a much wider range of unique addresses thanks to its format. The IPv6 format consists of eight groups of four hexadecimal digits separated by colons.

An IP address is assigned to a host statically - selected by an administrator - or dynamically using DHCP service. The best practice is to manually assign a static IP address to the device where continuous availability is critical. All the other devices should be assigned a dynamic IP address via DHCP.

What Is a Static IP Address and When to Use it

A static IP address (fixed IP address) is a numerical identifier that remains changeless indefinitely when assigned to a device. It is used when it is undesirable to change the address dynamically, typically when permanent access is required (e.g., access to servers, routers, printers)

There are two main options on how to get a static IP address:

  1. You can rent a static IP address from your Internet Service Provider.
  2. Use business cloud VPN with dedicated static IP such as GoodAccess VPN Static IP service. In this scenario, your users directly connect to a gateway and then to the desired network services. All the traffic after the gateway is with the same fixed IP. Alternatively, your router can be configured to communicate to the Internet exclusively through the gateway, comprising all traffic under the same static IP (multiple hosts share one IP address). If you want to dig a bit deeper, see this article that explains how a modern IPsec VPN / VPN with static IP works.

The most common static IP address use cases are restricting network access (with IP whitelisting) and enabling remote access (when you host a service inside your LAN and need to access it regardless of geographical constraints). Fixed IP address will deliver you a value if you want to:

  • Have a unique identification on the Internet and the possibility of IP whitelisting with no hassle.
  • Avoid potential IP address conflicts WAN/LAN - the situation when two hosts are assigned with the same IP (which usually leads to one host being unable to communicate).
  • Define firewall rules valid indefinitely (using a dynamic IP address would lead to updating the firewall rule every time the IP changes).
  • Have your services hosted inside your LAN accessible from the public Internet.
  • Have full responsibility for your IP reputation. Without a static IP, you use one of ISP’s shared dynamic IP addresses that don’t uniquely represent your network, and others might negatively affect your IP reputation. With Static IP, only you keep an eye on correct (r)DNS settings, IP reputation, correct IP geolocation and other parameters which is handy when you, ie. run an emailing service.

What Is a Dynamic IP Address?

In case you don't need a static IP for the particular device (typically  smartphones, tablets, PCs) a dynamic IP address is an obvious choice.

A dynamic IP address is a numerical identifier assigned to a host (server, PC, laptop, mobile device, etc.) by DHCP (Dynamic Host Configuration Protocol) service to enable network communication. The address is leased for a specified timeframe. After this period, the IP address becomes available to any other host that requests a new assignment (or a renewal) of an IP address - either when connecting to the network or after its previous IP lease time expired respectively (see figure 1). So a different address can be assigned after this period (usually 24 hours, but this is a custom configuration) if the previous one is already in use by another host. This means that one host's address may change over time.

Fig 1: MikroTik DHCP server. List of hosts with assigned dynamic IP addresses and leased period.

Pros and Cons of Using Dynamic IP Address:

  • There is no need to restrict an IP address for any host on the network when not all hosts are connected simultaneously, so in theory, available IP range usage is optimized.
  • Easy and automatic IP address assignment. If DHCP services are not used, each host would have to be manually assigned with a static IP address to communicate on the network. This is a time-consuming process, especially when the network scales. DHCP solves this problem by automatically assigning IP addresses.
  • On the other hand, since a dynamic IP address doesn't represent an absolute unique identification of a device, network access control must be done using different means, such as Mac address, or better, user identity.

Static IP vs Dynamic IP

There is no simple answer to the question if it is better to have a static IP or dynamic IP. Both have their significance, both enable network communication, but otherwise their purpose is different. Especially in a business environment. If you are a common user, you probably don't care whether your IP address is static or dynamic (if you do, you can always check with Google, just type what's my IP address). But if your job is networking in a company, you care about the accessibility of the services and IP ranges, must deal with IP conflicts, and generally ensure smooth communication over the network, the distinction "dynamic IP vs static IP" is very important.

Static IP address Dynamic IP address
Suitable for hosting services and devices that must be always accessible (e.g. web servers, FTP, routers, printers) Suitable for all "common" devices (e.g. smartphones, tablets, PCs)
Usually requires manual device configuration and change management Easier to configure and manage, usually assigned automatically by a DHCP server
Doesn't change over the time Changes every time the device connects to an IP network or once the leased period expires.
Unique device identification that allows precise access control to particular networks/services Not a unique identifier so that access control must be done using different means, such as MAC address, or better, user identity.
Ideal for remote access Not suitable for remote access
Might be perceived as less secure due to an easier trackability of static IP addresses. This can be easily overcome by using a VPN. Perceived as less vulnerable to attacks. Dynamic IP addresses are harder to track due to their changeable nature.


Both static and dynamic IP addresses have their purpose and every responsible network administrator should follow best practices. Sometimes, questions like whether static IP is safe or at least safer than dynamic IP address arise. From the server perspective, there is no relation between the security and the address type. You are facing a potential danger no matter if your server has static or dynamic IP. What matters is correct firewall settings and access rights restriction.

Go back
Go back