Network security

What Is a Static IP Address? How It Works, Uses and Security Risks

A static IP address stays the same every time you connect. Here is what that means, when it helps, what it costs, and when a dynamic IP is the better choice.

Cysoro Security TeamPublished · 8 min read
DYNAMIC203.0.113.45changes STATIC203.0.113.45never changes STATIC — AFTER REBOOT203.0.113.45still the same NETWORK SECURITY Static IPaddress One address, every time.
Quick answer

A static IP address is an IP address that is manually assigned to a device or connection and does not change over time. Unlike a dynamic IP, which your ISP or router assigns temporarily through DHCP and can change when the lease expires, a static IP stays the same across reboots and sessions, which makes it useful for hosting servers, remote access and allowlisting, but also easier to track and target.

Key takeaways

  • A static IP never changes; a dynamic IP is leased by DHCP and can change when the lease expires.
  • Static IPs suit servers, remote access, VPNs and allowlists; dynamic IPs suit most homes and everyday browsing.
  • A static IP is usually a paid add-on from your ISP, and it makes your connection easier to identify and target.

Every device on the internet needs an address so data can find its way back to it. Most of the time that address changes without you noticing. A static IP address is the exception: it stays the same, day after day, reboot after reboot — and that permanence is both its power and its risk.

What is a static IP address?

A static IP address is an IP address that is manually assigned to a device or internet connection and does not change over time. Once it is set, the same numbers identify that device or connection in every session, until someone deliberately changes them.

An IP address is a numerical label that identifies a device on a network. The Internet Protocol, defined in RFC 791, uses these addresses to route packets between hosts. IPv4 addresses are four numbers from 0 to 255 separated by dots, such as 203.0.113.45.

There are two levels to keep straight. A public static IP is the address your ISP assigns to your whole connection, visible to the internet. A private static IP is an address inside your home or office network, such as 192.168.1.50, used by one device on your local network. Both stay fixed, but they solve different problems.

How does a static IP address work?

A static IP works by skipping the automatic assignment step. Instead of asking a server for an address each time it connects, the device simply uses the address that was configured for it, along with its subnet mask, gateway and DNS servers.

An administrator types the address into the device, or the ISP records it against your account and your router uses it. Every boot, the device uses the same address. No DHCP server is consulted, and no lease expires.

That is the opposite of the normal path. Most devices get their address from DHCP, the Dynamic Host Configuration Protocol defined in RFC 2131. DHCP hands out an address from a pool, along with a lease that has an expiry date. When the lease ends, the device may get the same address again — or a different one.

Dynamic IP: the DHCP lease cycle (DORA)1. DiscoverDevice asks: who cangive me an address?2. OfferDHCP server offersan address + lease3. RequestDevice accepts theoffered address4. AcknowledgeServer confirms;lease clock startsStatic IP: none of this happensThe address is written into the device or recorded by the ISP. It survives reboots,lease expiry and long periods offline — until someone changes it by hand.
DHCP leases a dynamic address in four messages; a static address skips that cycle entirely. Illustration by Cysoro.

Static vs dynamic IP: what is the difference?

The only real difference is whether the address changes. A static IP stays the same over time, while a dynamic IP can change periodically when its DHCP lease expires or the device reconnects.

Static IPDynamic IP
Changes?Never, until changed by handCan change when the lease expires
How assignedManually configured or assigned by ISPAutomatically by a DHCP server
CostUsually a paid ISP add-onIncluded in most residential plans
Setup effortPer device, by handNone once DHCP is running
Best forServers, remote access, allowlistsMost homes, phones, laptops
PrivacyEasier to track over timeChanges, so harder to follow
DNSDNS records stay validNeeds dynamic DNS to stay reachable
Downtime riskAddress conflicts if misconfiguredDHCP server failure can block new devices

A dynamic IP is not random every time. Your ISP may give you the same address for weeks or months, because DHCP often renews the same lease. The difference is the guarantee: with a dynamic IP, the address can change, and with a static IP, it will not.

Static and dynamic are also separate from public and private. Any address is public or private, and static or dynamic. Your home router usually has a public address from your ISP and hands out private addresses, such as 192.168.0.0/16, to devices inside the network. Those private ranges are defined in RFC 1918.

When do you need a static IP address?

Most people do not need one. You need a static IP when something else has to find you reliably at the same address, or when a service only trusts one address.

  • Hosting a website or server at home or in the office: DNS records point at your IP. With a dynamic IP, the record breaks every time the address changes.
  • Remote access: connecting to a home computer, camera system or NAS from outside is far simpler when the address never moves.
  • Running your own VPN or mail server: a fixed address makes the server reachable and keeps its reputation stable.
  • IP allowlisting: some corporate systems, databases and APIs only accept connections from approved addresses. A static IP is the address you give them.
  • VoIP and video conferencing: a fixed address can reduce connection problems for some VoIP setups.
  • Geolocation services: a static IP gives a consistent location signal, which some services rely on.

For ordinary browsing, streaming, gaming and working from home, a dynamic IP is fine. Your router handles the assignment, and nothing on the other end needs to find you first.

What are the pros and cons of a static IP?

Static IPs trade convenience and reliability for cost and a larger privacy footprint. Weigh both sides before you pay for one.

Advantages: the address never changes, so DNS records, remote access and allowlists keep working. Hosting is simpler, troubleshooting is easier because the address is always the same, and some services treat a stable address as more trustworthy.

Disadvantages: it usually costs extra every month, it takes manual setup and documentation, and a mistake can cause an address conflict that knocks a device offline. It also makes your connection easier to identify: the same address appears in logs everywhere you go, for as long as you keep it.

Dynamic IPs have the mirror-image profile. They are free, automatic and change regularly, which is better for privacy. Their downside is unpredictability: you cannot rely on the address staying the same, and you need dynamic DNS if you want to be reachable from outside.

Is a static IP address secure?

A static IP is not unsafe by itself, but it changes your exposure. A fixed address is easier to find, track and target. Attackers can scan it repeatedly, build a profile of the services behind it, and return to the same address days later knowing it is still yours.

That matters most if you expose services to the internet. A server on a static IP should sit behind a firewall, expose only the ports it needs, use strong authentication, and keep its software patched. A static IP with an open, unpatched service is a standing invitation.

A static IP does not hide your location or identity. Your ISP still knows who the address belongs to, and websites still see it. If you want to hide your IP from the sites you visit, use a VPN — but note that a VPN gives you the VPN provider's address, not a static address of your own, unless you pay for a dedicated IP add-on.

Do not expose a static IP carelesslyIf you run a server on a static IP, close every port you do not need and turn on your router firewall. Check what your connection reveals with our free what-is-my-IP tool.

How do you get a static IP address?

For a public static IP, ask your ISP. Most providers offer one as a paid add-on, more commonly on business plans than residential ones, and the price varies by provider and region. The ISP assigns the address to your account and tells you the address, subnet mask, gateway and DNS servers to use.

For a private static IP inside your home or office network, you have two options. You can type the address into the device itself — in Windows network settings, macOS network settings, or a Linux configuration file — or you can create a DHCP reservation in your router, which tells the router to always give the same address to that device. The reservation is usually the safer choice, because the router keeps a single record of which address belongs to which device and avoids conflicts.

Before you set a private static IP, pick an address outside your router's DHCP pool, use the same subnet mask and gateway as your other devices, and write down what you assigned and where. Undocumented static addresses are how networks end up with two devices fighting over one IP.

How do you check if your IP is static or dynamic?

The simplest test is to restart your router, wait for it to reconnect, and check your public IP before and after. If it changed, you have a dynamic IP. If it stayed the same, you probably have a static IP — or a dynamic IP that happened to renew the same lease.

  1. Check your current public IP with our what-is-my-IP tool and write it down.
  2. Restart your router and wait for the connection to come back.
  3. Check again. A different address means dynamic. The same address, repeated over several restarts and days, suggests static.
  4. Confirm with your ISP if you need certainty, or look at your router's WAN settings: a manually entered address means static, while DHCP means dynamic.

On Windows, you can also open a command prompt and run ipconfig /all, then look for the "DHCP Enabled" line. "Yes" means the address is dynamic, and "No" means it is static.

Do you need a static IP?Does something need to find you at thesame address every time?YES — hosting, remoteaccess, VPN server,allowlistGet a static IPNO — browsing, streaming,gaming, working fromhomeDynamic IP is fineInside your home network, a DHCP reservation usually gives you the same benefit for free.
Most households do not need a public static IP; a DHCP reservation covers the common home-network cases. Illustration by Cysoro.

What mistakes should you avoid with static IPs?

The most common mistake is assigning a static IP that is already in use, or that sits inside the DHCP pool. Either way, two devices end up with the same address and one of them drops off the network. Always check the DHCP range first and document every assignment.

Another mistake is paying for a public static IP when a DHCP reservation or dynamic DNS would do the job. If the only device that needs a fixed address is inside your home, a reservation costs nothing. If you need to reach a home server from outside, dynamic DNS updates a hostname whenever your dynamic IP changes.

Finally, do not assume a static IP is a security feature. It is an addressing choice, not a defense. Pair it with a firewall, strong passwords, patched software and, for remote access, a VPN. Our guide to how to secure your Wi-Fi covers the home-network side of that.

The bottom line

A static IP address is an address that never changes. That permanence makes it the right choice for hosting, remote access and allowlisting, and the wrong choice for most everyday use, where a free dynamic IP is simpler and harder to track.

If you need one, get it from your ISP for the public side, or use a DHCP reservation for devices inside your home. Either way, check what your connection exposes with the free what-is-my-IP tool before you open anything to the internet.

Frequently asked questions

What is a static IP address in simple terms?

It is an internet address that stays the same. Once it is assigned to your connection or device, it does not change when you restart your router or reconnect, unlike a dynamic address that can change.

Is a static IP address better than a dynamic IP?

Neither is better for everyone. A static IP is better for hosting a server, remote access and allowlisting. A dynamic IP is better for most homes because it is cheaper, needs no setup and changes regularly, which makes tracking harder.

How do I know if my IP address is static or dynamic?

Restart your router and check your public IP before and after, for example with an IP lookup tool. If it changes, you have a dynamic IP. You can also ask your ISP, or check whether your router's WAN settings use DHCP or a manually entered address.

How do I get a static IP address?

Ask your ISP. Most providers offer a static public IP as a paid add-on to a business or residential plan. For a device inside your home network, you can set a static private IP in the device settings or reserve one in your router's DHCP settings.

Does a static IP address make me less secure?

It can. A fixed address is easier to identify, track and target with repeated attacks, and it does not hide your location. It is not unsafe by itself, but it should be paired with a firewall, strong passwords and, where needed, a VPN.

Can I change my static IP address?

Yes. Your ISP can assign a different static IP, usually on request and sometimes for a fee. You can also switch back to a dynamic IP. A static private IP on your own network can be changed in the device or router settings at any time.

Do I need a static IP for a VPN?

Not usually. Most VPN users do fine with a dynamic IP. A static IP helps if you run your own VPN server, need to allowlist one address on a corporate firewall, or want a fixed address that a service always recognises.

What is the difference between a static IP and a reserved IP?

A reserved IP, also called a DHCP reservation, is assigned by your router's DHCP server to one device every time it connects. It behaves like a static IP inside your home network, but it is managed centrally by the router rather than typed into the device.

Sources

  1. Fortinet — Static vs Dynamic IP Address
  2. IETF — RFC 2131: Dynamic Host Configuration Protocol
  3. IETF — RFC 791: Internet Protocol
  4. IETF — RFC 1918: Address Allocation for Private Internets
  5. Avast — Static vs. Dynamic IP Addresses
  6. How-To Geek — Static vs. Dynamic IP: What Is the Difference?
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against IETF RFC 791, RFC 1918 and RFC 2131, and Fortinet's static versus dynamic IP guide.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free