Whitelist IP Address Safely: A Setup Guide

To whitelist IP address access, add the public source address that the protected service sees to its allowlist, then limit the rule to the service and port. This lets connections from approved addresses through while blocking others; it does not identify a person, so keep passwords and multifactor authentication in place.
Your laptop's address is often not the one an internet service checks. Find your public address on Loqmi, then verify it from the same network and VPN path you will use to connect. Switching from café Wi-Fi to a VPN can change the answer before you finish your coffee.
How to whitelist IP address access safely
An IP allowlist (also called an IP whitelist) is a rule that permits traffic from specified internet addresses and denies traffic from everyone else. The check may live in a cloud account, web application, server firewall, router, or vendor access settings. The exact controls depend on where that service enforces access.
Think of it as a receptionist who checks the return address on an envelope. It can narrow which networks reach a login page or API, but it cannot prove which employee is holding the laptop. Use it as one layer alongside account authentication, and scope it to only the resource and traffic you intend to protect.
Find the address to allow
Most allowlist rules for internet services need your public IP address: the source address visible outside your local network. A router commonly translates multiple devices' private addresses into one public address through Network Address Translation (NAT), which is why your laptop, phone, and smart TV can all appear to live at the same address. Private addresses, described for IPv4 in RFC 1918, work inside networks and are not the address a remote service normally sees.
- Connect to the same office, home network, or approved VPN you will use to reach the service.
- Open Loqmi and note the public IPv4 address shown. If the service or administrator expects IPv6, check that address too.
- Enter the value in the service's allowlist field, following its requested format. Many systems ask for a single address as a one-host CIDR, such as
203.0.113.42/32for an IPv4 example. - Save the rule, then test from the approved connection and from a different connection if you can do so safely.
NAT matters because the private address on your computer, such as one assigned by your router, may be invisible to the service. Some networks also use carrier-grade NAT (CGNAT), where an ISP shares a public address among customers. In that case, a vendor's IP rule may identify a shared exit point rather than your individual household; ask the service administrator or ISP which option is supported. See public vs. private IP addresses for the distinction.
Choose the right rule
Before changing anything, identify the destination, direction, protocol, and port. An inbound rule controls connections arriving at a server; an outbound rule controls traffic leaving a network. TCP and UDP are transport protocols, and a port identifies the service on the destination device. An address-only exception may be broader than you need. (Every rule you add is one more thing to forget, so write down why it exists.)

| Situation | What to allow | What to check |
|---|---|---|
| One person uses a vendor portal | The current public address, if the vendor offers account or portal allowlisting | Does the rule cover the whole account or only one URL? |
| Remote staff reach a company service | The organization's VPN egress address or approved network range | Confirm the VPN route and address with IT; home IPs can change. |
| A server accepts SSH or remote desktop | A narrowly scoped source and the required management port | Keep authentication enabled; do not expose the port to every address. |
| A web app is behind a proxy or CDN | The source range appropriate to the proxy-to-origin path | Do not mistake proxy addresses for visitor addresses or leave the origin open. |
For example, if an administrator asks for one IPv4 address and Loqmi shows 203.0.113.42, a one-host rule may be written as 203.0.113.42/32. A /32 means exactly one IPv4 address. A shorter prefix includes a wider network, so do not guess one to cover possible future changes. CIDR (Classless Inter-Domain Routing) is the slash-prefix notation used to describe an address or network range. Think of /32 as a guest list with one name; a broader prefix invites more neighbors than you may intend.
Keep the rule reliable
A dynamic public address can change when your provider reassigns it, your router reconnects, or you switch networks. A static public address is intended to remain stable, but verify what your ISP or network administrator provides; a device's local static address does not make its public address static. If the route changes, the rule may be checking an address you no longer use. Learn more about static and dynamic IP addresses.
If you need regular remote access, ask whether the service supports a fixed VPN exit address or an organization-managed access gateway. A VPN can make connections appear from its exit address, but only while traffic to that service is routed through it. Check the public address again after connecting; our guide to checking whether a VPN is working explains how to verify the visible connection.
Before you save: keep an existing admin session open, confirm a recovery path such as provider console access, and test the new rule before closing the session. Record who owns each entry and why it exists so old exceptions can be removed deliberately.
Avoid common mistakes
- Allowlisting a private address: remote services usually see the public address after NAT, not your laptop's local address. The NAT translation process is described in RFC 3022.
- Forgetting IPv6: a connection may use IPv6 even when you copied an IPv4 address. Ask whether the service accepts both, and add only the address families you need. An IPv4 rule will not quietly grow an IPv6 twin, however hopeful you are.
- Allowing an oversized range: a broad CIDR rule may include many networks that do not need access. Request the smallest range that supports the use case.
- Confusing the rule's purpose: allowing an address through a firewall is different from allowing an app through a personal device firewall. Microsoft's Windows guidance recommends narrowly scoped exceptions and warns that opening ports can increase exposure; do not switch the firewall off to fix a single blocked service.
- Treating an IP as a credential: IP addresses can be shared, reassigned, or used by someone on the same approved network. Keep user authentication and review access when staff or infrastructure changes.
For a website behind a content delivery network, the origin server may see the CDN's address rather than each visitor's. In that setup, allow only the CDN's published source ranges to reach the origin, and make sure direct access to the origin is restricted too. Cloudflare documents an allowlist rule example; the rule's effect depends on where you apply it, so inspect its scope before enabling it.
Test and troubleshoot
If access fails after the rule is saved, compare the address in the rule with the public address visible from the exact connection you are using now. If a service still rejects it, use Loqmi’s IPv4 blacklist checker as a quick first check across five public DNSBLs, then follow the service’s own guidance. Also check for a VPN, proxy, different Wi-Fi network, IPv4-versus-IPv6 mismatch, CIDR typo, or rule attached to the wrong account, resource, port, or direction.
Loqmi's IP check is a before-and-after check: note the address with your normal connection, connect to the approved VPN or network, then refresh the page. If the value changed, that is the address the remote service may see for that route. A speed test can help tell whether the connection itself is slow, but it cannot confirm that an access rule is correct. It measures your line, not your rule.
When a test locks you out, use the provider's recovery or console access rather than widening the rule to everyone. Cloud services often provide a control-plane console that is separate from the network path being restricted; confirm the recovery method before deploying a rule. Once access works, remove temporary exceptions and note the owner, purpose, and review date for each permanent entry.
Key takeaways
- Use the public source address seen by the protected service, not the private address on your device.
- Limit the rule by resource, direction, protocol, port, and smallest useful CIDR range.
- Dynamic IPs and network changes can break access; verify the visible address on the exact route you use.
- An allowlist narrows network access, but it does not replace passwords, multifactor authentication, or careful rule reviews.
Frequently asked questions
Does an IP allowlist replace a password or MFA?
No. An IP rule checks the network address a connection comes from, not the identity of the person using it. Keep individual accounts, strong passwords, and multifactor authentication where available. If a permitted device or network is compromised, the allowlist alone cannot tell a legitimate user from an intruder using that same route.
Can I allowlist an IPv6 address?
Usually, if the service supports IPv6 rules. Confirm whether the destination sees IPv4, IPv6, or both, then add only the address family and range the administrator requested. A rule for your IPv4 address will not automatically cover your IPv6 traffic, and a broad IPv6 prefix can authorize far more addresses than intended.
Why does an allowlist stop working after I travel?
The connection now leaves through a different network, so the service sees a different public source IP. Home, hotel, mobile, and office networks commonly have different addresses. Use the organization's approved remote access method or ask its administrator to update the rule; do not add a large address range just to make travel convenient.
Should I use a static IP for a whitelist?
A static public IP can make a rule more dependable when a service must recognize one office or server over time. It is not automatically safer, and it may involve a provider or VPN configuration. First check whether a managed VPN, identity-based access policy, or other supported method is a better fit for your users and risk.
Sources
- RFC 1918: Address Allocation for Private Internets
- RFC 3022: Traditional IP Network Address Translator
- AWS: Configure security group rules
- Cloudflare: Allow traffic from IP addresses in allowlist only
- Microsoft: Firewall and network protection in Windows Security
- Microsoft: Risks of allowing apps through Windows Firewall