A ball and chain tied to a geolocation icon that reads IP

Dynamic IP (Internet Protocol) addresses change from time to time. Typically, this isn’t an issue for the casual internet user. But for some more specialized use cases like IP configuration errors, it’s better to have a static IP address that always stays the same. So, read below — this article is all about using a static IP. 

Table of contents

    Why you may need a static IP address

    Usually, your device gains a dynamic IP via DHCP (Dynamic Host Configuration Protocol), which you’ll switch away from when setting a static IP address. But before you go out of your way to obtain a static IP, you may want to know why you’re doing all this.

    Here are a few good reasons to get a static IP:

    You want to host a server
    If you want a server that potentially anyone (or just you when you’re away from home) can reach, you need a static IP. This applies to game servers, email servers, and setting up your own VPN server.
    You want more speed
    Both file downloads and uploads are faster with a static IP.
    You want a better VoIP experience
    VoIP (Voice over IP) is the technology behind all our live voice chats online. While they don’t always turn out to be top quality, having a static IP may increase it.
    You want accurate geotracking
    If you want your device to show up more precisely on various geolocation tools, a static IP could help.

    How to set a static IP address

    Before following any of the guides, contact your ISP (Internet Service Provider), as it assigns static IP addresses. Depending on your ISP, you may have to pay extra for a static IP address. 

    Your IP address might be in the IPv4 (Internet Protocol version 4) format, which looks like X.X.X.X, where X can be any value between 0 and 255. For example, your IP address may be something like 192.0.2.146.

    With that out of the way, follow the appropriate guide to set up your static IP:

    How to set a static IP address on Windows 11

    1. Enter Settings into the search bar and click Enter.
    A screenshot showing the word settings typed into the search bar and search results with an option to open the Settings app.
    1. Choose Network & internet.
    A screenshot showing the Settings app window with System, Bluetooth & devices, Network & internet, and more options.
    1. Click Advanced network settings.
    A screenshot of the Network & internet tab of the Settings app with a list of options, including Advanced network settings.
    1. Scroll down to Hardware and connection properties and click it.
    2. Write down the current IPv4, Subnet mask, Default Gateway, and DNS server addresses for future use.
    3. Back on Network & internet, click on either the Ethernet or Wi-Fi connection for your internet connection.
    • If you’re using Wi-Fi, you’ll need to click <name of connection> properties
    1. Click on the Edit button for the IP assignment settings.
    2. Select the Manual option from the drop-down menu.
    3. Turn on the IPv4 toggle switch.
    4. Enter your new IP address in the IP address window. 
    5. Enter the rest of the data according to what you noted down earlier. 
    6. Click Save.

    How to set a static IP address on Windows 10

    1. Open Settings.
    2. Click Network & internet.
    3. Select Wi-Fi or Ethernet, depending on what you’re using. 
    4. Select your network connection.
    5. Click the Edit button under IP settings.
    6. Select Manual on the drop-down menu.
    7. Toggle on the IPv4 switch.
    8. Fill in your new IP address. You can use your old Preferred DNS, Default Gateway, etc.
    9. Click Save.

    How to set up a static IP address on macOS

    1. Open the Apple menu.
    2. Choose System Settings.
    3. Find and click Network.
    4. Click on the network connection you use.
    5. Click Details.
    6. Choose TCP/IP.
    7. Click the Configure IPv4 pop-up menu and choose Manually
    8. Enter the new static IP address in the IP field and any other data you need. 

    How to set up a static IP address on Android

    There are countless Android versions out there, so the instructions may differ based on your manufacturer and other factors. 

    1. Open Settings
    2. Go to Wi-Fi.
    3. Click the “i” button next to your Wi-Fi connection. 
    4. Tap on IP settings.
    5. Choose Static.
    6. Input the new IP address and hit Save

    How to set up a static IP address on iOS

    1. Open Settings and tap Wi-Fi.
    2. Choose Network.
    3. Under IPv4, tap Configure IP.
    4. Choose Manual.
    5. Input your new static IP address.

    How to set a static IP address on Linux

    1. With the Ctrl+Alt+T command, open the terminal.
    2. Run the ip addr or ifconfig command and identify your network interface.
    3. Open the Netplan Configuration file using the command ls /etc/netplan/.
    4. Edit the YAML configuration file from the previous step using a text editor like Nano or Vim.
    5. Under the relevant network interface, modify the file to list your static IP settings.
    6. Save the file and run sudo netplan apply to apply the modifications.

    How to set a static IP address on Raspberry Pi

    1. On the menu bar, click on the Wi-Fi icon.
    2. Select the Wireless & Wired Network Settings.
    3. Select a network interface — wlan0 for Wi-Fi and eth0 for ethernet.
    4. Enter your static IP address in the IPv4 Address field.
    5. Enter your router’s IP address in the Router field and the DNS server’s IP address in the DNS Servers field.
    6. Click Apply and reboot your Pi.

    How to set a static IP address through a router

    You can set a static IP address through your router for all devices connected to its network. For this, you will need the MAC address of the device you want to set up with a static IP. This device will also have to be connected to the router.

    Note that these instructions are general, and the process might slightly differ depending on your router.

    1. Access your router by typing its IP address (usually found on the back of your router) into the search bar of your web browser.
    2. Log in to your router’s admin panel.
    3. On the configuration page, navigate to LAN settings, Network Settings, Advanced Settings, or something similar.
    4. Look for DHCP reservations or static IP addresses settings.
    5. Enter the MAC address of the device you want to set up with a static IP.
    6. Enter the static IP address you want to assign to the device.
    7. Save the changes. You may also need to restart your router or the device.

    Don’t want to do any of that? There’s always the option of getting a Dedicated IP from Surfshark. This way, you’ll have a VPN server with a static IP — just connect to it when you go online and enjoy the benefits. 

    The difference between static and dynamic IP addresses

    There are some differences between static and dynamic IP addresses. Here are the essential differences worth noting:

    Static IP address
    Dynamic IP address
    Never changes
    Changes frequently, for example, after rebooting a device
    Has to be requested from an ISP
    Can be changed at any time
    Costs money for the user and ISP
    Cheap to maintain

    And these are basically all the essential differences between static and dynamic IPs worth knowing!

    Learn more about how to change your IP address in this guide.

    In conclusion: Surfshark is the easiest way to get a static IP

    Most people don’t really need a static IP address, as a dynamic one perfectly serves their needs. However, if you need to get a static address, the process isn’t that involved aside from getting it from the ISP. And, of course, the fastest way to do this is to use a static IP server via the Surfshark VPN app.

    Change your location safely
    Protect your data with an industry-leading VPN
    Surfshark

    FAQ 

    How do I get a static IP address for free?

    Unless your ISP is giving out free IP addresses, you can’t. On the other hand, if you’re an existing Surfshark VPN user, you can switch to the static IP section on the app and join a static IP server. If you always join the same server, you’ll always have the same IP. 

    Is it okay to use a static IP address?

    It’s okay to use a static IP address. A static IP is a little less secure than a dynamic address. Its static nature can make your device easier to access if it also has an open port number, but not by much.

    How do I use a static IP address on my Wi-Fi?

    If your home Wi-Fi network is run from a router provided by your ISP, you should ask the ISP to give you a static IP and then configure your router to use it. The exact details depend on the router in question.

    What’s the difference between a dedicated and static IP?

    A static IP is an IP address that doesn’t change over time. On the Surfshark VPN app, Static IP is a feature that allows users to connect to a VPN server that will always have the same IP address. However, that IP address is shared by all the users connected to the server. Dedicated IP is a different Surfshark tool. It gives you a static IP that will never change and will always be yours — and only yours — as long as you’re subscribed to the service.