IKEv2 on iPhone: What to Enter in the “Server,” “Remote ID,” and “Local ID” Fields

TL;DR

A guide to IKEv2 fields on iPhone: what to enter in 'Server,' 'Remote ID,' and 'Local ID,' how to choose the authentication type, and how to verify the certificate.

Don’t want to set up a server yourself? Get a ready server
IKEv2 on iPhone: What to Enter in the “Server,” “Remote ID,” and “Local ID” Fields

Quick answer: in the "Server" field, you usually enter the domain name or IP of your VPN server; in "Remote ID," the identifier that must match what the server expects (often the domain name shown in the server’s certificate); in "Local ID," the client identifier the server uses to apply rules (often left blank or set to a username/ID provided by your VPN provider). Always get exact values from your provider or administrator – guessing is a common cause of certificate verification errors or connection failures.

What the IKEv2 Fields on iOS Mean and Why They Matter

IKEv2 (IPsec) is a protocol where both sides exchange parameters and verify identities. On an iPhone, you’ll see three fields that often cause confusion:

  • Server – the address you connect to (the VPN gateway).
  • Remote ID – how your iPhone verifies the server; this string tells iOS how to match the server with its certificate (usually the server’s certificate identity).
  • Local ID – how the server recognizes you; this client identifier may be checked or used in server policies.

These values are part of the authentication process. If they don’t align with server settings or the certificate, iOS might not trust the server, or the server may reject the client. For deeper detail on authentication logic and identifiers, check Apple’s official documentation on IKEv2/IPsec: Apple: IKEv2 device management settings.

The "Server" Field: Domain or IP, and How to Know What to Enter

Most common entries

  • Fully Qualified Domain Name (FQDN) like vpn.example.com — this is the most popular choice, convenient when IPs change while certificate validation must still match the configured server identity.
  • IP address — sometimes used for quick tests or if there’s no domain. But keep in mind, the "Remote ID" is still key when verifying certificates.

Before you proceed

  • Check with your provider whether you should connect via a domain name or IP. If you’ve been given a domain and certificate, it’s usually best to use the domain.
  • If you use an IP, verify if it changes over time (like with home or dynamic IP addresses). Frequent changes might cause intermittent connection issues.

Safe practices (easy to revert)

  • If unsure, start with what your provider’s instructions say. Don’t disable certificate verification or try "unverified" options if errors happen—better to double-check the correct address.
  • If your provider gave both a domain and IP: try entering the domain in "Server" and use the IP only temporarily for troubleshooting, then switch back.

"Remote ID": The Key to Certificate Validation and Common Options

"Remote ID" often causes errors because iOS uses it to match the server’s identity during authentication. When certificates are involved, this usually corresponds to the name within the server’s certificate.

Typical values for "Remote ID"

  • VPN domain name (e.g., vpn.example.com) — the most common and straightforward choice.
  • Identifier string (like ikev2.example.com or gateway-id) — used when the provider wants to separate "connection address" from "identity name."
  • IP address — sometimes allowed, but often problematic if the certificate is issued to a domain rather than an IP.

How to figure out what’s expected

  • Review your provider’s IKEv2 settings: sometimes "Remote ID" is specified separately from "Server."
  • If you have a configuration profile (.mobileconfig) or provider’s config text, "Remote ID" is usually explicitly set there. When entering settings manually, try to match those values exactly.
  • If your connection fails with trust or certificate errors, a common cause is that "Remote ID" doesn’t match the name in the server’s certificate.

Safe practices (easy to revert)

  • If you used an IP address as "Remote ID," try switching to the domain name provided (then revert if necessary).
  • If "Server" is an IP but your provider supplied a domain for identification, keep the IP in "Server" but set the domain as "Remote ID" precisely as given to ensure proper certificate verification.
  • If your provider gave you a separate "Remote ID" (a string not matching the domain), use exactly that, even if it feels unusual.

"Local ID": When to Leave It Blank and When to Specify

"Local ID" indicates how you identify the client side. It’s optional in some setups but critical in others, especially if the server differentiates users or profiles not just by username but also by ID.

Common "Local ID" options

  • Blank — a common choice if the server only requires username/password (EAP) or a client certificate.
  • Username — sometimes you’re asked to set the same login used for EAP as "Local ID."
  • Specific identifier string — if your provider gives you a distinct "Local ID" like client123 or user@realm.

Check before making changes

  • If the server rejects the connection (not a certificate trust error) and your provider mentioned a Local ID, double-check you didn’t leave it empty by mistake.
  • If you have multiple profiles/users and only some work, compare whether the "Local ID" is set.

Safe practices (easy to revert)

  • If your provider did not provide a Local ID, start with this field empty. It’s safer and less likely to cause mismatches.
  • If your provider gave a specific Local ID, enter it exactly (case and characters matter). If it doesn’t help, revert the field and check the format with your provider.

IKEv2 Authentication Type on iPhone and Its Link to IDs

On iOS, two main authentication methods are common for IKEv2:

  • Username/password (EAP) — you enter credentials, and the server verifies your identity. The server typically uses a certificate so your iPhone can confirm it’s connecting to the legit server. Correct "Remote ID" is especially vital here.
  • Certificate-based — the client also has a certificate (usually issued by the provider or administrator). In this case, "Local ID" can be important for selecting the right certificate or policy, but exact behavior depends on server setup.

How to tell which mode you’re in

  • If your provider only gave you a username and password, you’re probably using EAP.
  • A .mobileconfig file or certificate alone does not identify the login method: a profile may configure EAP, and a certificate may only establish trust in the server. Check the authentication method specified by your provider.

Safe practices (easy to revert)

  • Don’t try switching authentication types randomly if your provider supplied parameters for a specific method – it often results in the server rejecting the connection.
  • If you suspect an error (for example, you got a certificate but are trying to connect with username/password), check with your provider for the correct method, then follow their recommended settings.

Verifying the Certificate Name Matches the "Remote ID": A Checklist

In practice: when your iPhone verifies the server certificate, the "Remote ID" should match the name presented in the server’s certificate (usually a domain). If they don’t match, the connection won’t establish.

Diagnostic checklist (without revealing sensitive info)

Symptom Likely Cause Safe Actions (and how to revert)
Trust/certificate error on connection "Remote ID" doesn’t match the name in the server’s certificate Replace "Remote ID" with the domain/ID from provider instructions; revert if it worsens the situation
Connection hangs or drops without clear error Wrong "Server" address (unreachable) or incorrect "Remote ID" Verify the address with your provider; try switching between domain and IP, then revert back
Server immediately rejects (authentication failed) Wrong credentials, incorrect "Local ID," or wrong authentication type Check username/password; clear or set "Local ID" per provider; revert and clarify with provider if it doesn't help
Works over Wi-Fi but unstable on mobile network Usually network/routing/filtering issues, not ID fields First confirm "Server/ID" are correct, then discuss alternate addresses or protocols with provider without reducing certificate checks

If you want a step-by-step guide for adding an IKEv2 profile on iOS (exact instructions on taps and entries), see: Setting up IKEv2 VPN on iOS. Here, we focus on what the fields mean and how to verify matches.

Quick tips for safely managing these settings

  • Don’t share your "Server," "Remote/Local ID," logins, passwords, keys, or certificate contents in chats or screenshots. If you need to show a problem, mask sensitive details.
  • Change one setting at a time so you know what exactly caused an effect and can easily revert.
  • Don’t disable certificate verification or accept "any certificate" just for quick connection; this weakens protection against fake servers.

FAQ: Common Questions About "Server," "Remote ID," and "Local ID"

Can "Server" and "Remote ID" be different?

Yes, that’s a common setup: "Server" is where you connect, and "Remote ID" is how you confirm the server’s identity. For example, you could connect using an IP address but verify the server using the domain name from its certificate (if your provider says so).

If I only have an IP, what should I put in "Remote ID"?

It depends on what the server’s certificate is issued to and how the VPN is configured. Providers often still give a domain or separate identifier for "Remote ID." If you don’t have this info, ask your provider rather than guess.

Should I fill in "Local ID" if I log in with username and password?

Usually no, it’s often left blank. But some setups require explicitly specifying "Local ID" for policy matching. If your provider gave you a value, use it; otherwise, starting with an empty field is fine.

Why did my VPN stop connecting after a domain change?

Two common reasons: the "Server" address (DNS/routing) changed, or the certificate name no longer matches the "Remote ID." The safe approach is to revert to previous values, then confirm the new domain and Remote ID with your provider, ensuring the certificate covers the new name.

Can I use the same "Remote ID" for different servers?

Yes, if the administrator configured multiple gateways with the same authenticated server identity and certificates valid for that Remote ID. Other deployments use different identifiers. Follow the settings supplied by your provider for the selected gateway.

When a personal server helps: if you want a stable, dedicated VPN gateway with a fixed IP, no neighbors, and clear IKEv2 parameters (including correct "Server/ID" values), it’s easier when your provider gives you personal credentials and you manage one specific profile.

When it won’t fix the problem: if issues come from missing or incorrect data (like Remote ID or certificates) or network/device restrictions, a personal server alone won’t replace the need for proper configuration and certificate verification—you still have to use provider-issued data and keep checks enabled.

If you prefer a “one user – one server” scenario, vpn.how offers personal VPN servers with dedicated IPs; see current locations, protocols, pricing, and policies on their site and in your account.

Publisher: vpn.how


Share this article: