How to Setup IPSec Xauth PSK VPN on Android

Last updated: September 11, 2025
Table of Contents

IPSec Xauth PSK on Android

This guide shows you how to configure a pure IPSec tunnel using Android's native VPN client with Extended Authentication (Xauth) and Pre-Shared Key (PSK). No additional apps required.

About IPSec Xauth PSK

Protocol Characteristics:

  • Native Support: Built into Android - no apps needed
  • Moderate Security: Better than PPTP, not as secure as OpenVPN
  • Good Compatibility: Works on most networks
  • Battery Efficient: Low overhead compared to OpenVPN
  • Simple Setup: Easy configuration process

Security Note: While more secure than PPTP, IPSec Xauth PSK is less secure than OpenVPN or WireGuard. Consider using those protocols for sensitive data.

Prerequisites

Requirements:

  • Android device (4.0 or higher)
  • TorGuard VPN account with active subscription
  • VPN credentials (different from website login)
  • Pre-shared key: torguard

Step 1: Open Settings

Access Android Settings

Swipe up from the bottom of your screen and tap the Settings icon.

Android Settings
Android settings menu

Step 2: Navigate to Network Settings

Find VPN Options

Tap Network & Internet (may vary by Android version).

Android Version Differences:

  • Android 11+: Settings → Network & Internet → VPN
  • Android 9-10: Settings → Network & Internet → Advanced → VPN
  • Android 7-8: Settings → More → VPN
  • Samsung: Settings → Connections → More connection settings → VPN
Network Settings
Network & Internet settings

Step 3: Access VPN Settings

Show Advanced Options

  1. Tap the down arrow next to Advanced (if present)
  2. Tap VPN from the expanded menu
VPN Settings
Advanced network options showing VPN

Step 4: Add VPN Profile

Create New Profile

Tap the + button in the top right corner to add a new VPN profile.

Add VPN
VPN profiles screen

Step 5: Configure IPSec Settings

Enter Connection Details

Name: TorGuard VPN (or any name you prefer)
Type: IPSec Xauth PSK
Server address: Enter server hostname (e.g., uk.torguard.com)
See full server list
IPSec pre-shared key: torguard (lowercase, no quotes)
Username: Your VPN username
Password: Your VPN password

After entering all details, tap Save.

Tip: The pre-shared key is always "torguard" for all TorGuard servers.

IPSec Configuration
IPSec Xauth PSK configuration screen

Step 6: Connect to VPN

Establish Connection

  1. Return to the VPN list
  2. Tap your TorGuard VPN profile
  3. Tap Connect when prompted

First Connection:

On first connection, Android may ask to:

  • Create a VPN connection (tap OK)
  • Trust this application (tap OK)
  • Set up screen lock if not configured
Connect Prompt
VPN connection prompt

Step 7: Verify Connection

Connection Status

Once connected, you'll see:

  • VPN key icon in status bar
  • "Connected" status in VPN settings
  • Connection duration timer

Verify your IP has changed at TorGuard IP Check

Connected Status
Successfully connected to IPSec VPN

Managing Your Connection

Connection Controls

Quick Actions:

  • Quick Toggle: Swipe down → tap VPN notification
  • Disconnect: Tap profile → Disconnect
  • Always-on VPN: Long press profile → gear icon → Always-on VPN
  • Block connections without VPN: Enable for kill switch functionality

Profile Management:

  • Edit: Long press profile → Edit
  • Delete: Long press profile → Delete
  • Multiple Profiles: Add different server locations

Advanced Settings

Optional Configurations

1. Always-on VPN

  1. Long press your VPN profile
  2. Tap the gear icon
  3. Enable "Always-on VPN"
  4. Optional: Enable "Block connections without VPN" for kill switch

2. Split Tunneling (Android 5.0+)

Some devices support per-app VPN settings:

  1. Go to VPN profile settings
  2. Look for "Allowed apps" or "Disallowed apps"
  3. Select which apps use VPN

3. DNS Settings

To use custom DNS servers:

  • Some devices allow DNS configuration in VPN settings
  • Otherwise, use Private DNS in Network settings

Troubleshooting

Connection Failed

  • Verify server address is correct
  • Check username/password (use VPN credentials)
  • Ensure pre-shared key is exactly: torguard
  • Try a different server location
  • Check if IPSec is blocked on your network

No Internet After Connecting

  • Disconnect and reconnect VPN
  • Try a different server
  • Check mobile data/WiFi is working
  • Clear app cache for VPN service
  • Reset network settings if needed

Battery Drain

  • IPSec is generally battery efficient
  • Disable "Always-on VPN" when not needed
  • Use WiFi instead of mobile data when possible
  • Consider WireGuard for better battery life

Authentication Error

  • Double-check VPN credentials (not website login)
  • Verify pre-shared key is lowercase "torguard"
  • Reset VPN password if needed
  • Try removing and recreating profile

IPSec vs Other Protocols

Protocol Comparison

Feature IPSec Xauth OpenVPN WireGuard
Security ⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐⭐⭐
Speed ⭐⭐⭐⭐ ⭐⭐⭐ ⭐⭐⭐⭐⭐
Battery Life ⭐⭐⭐⭐ ⭐⭐ ⭐⭐⭐⭐⭐
Setup Ease ⭐⭐⭐⭐⭐ ⭐⭐⭐ ⭐⭐⭐⭐
Network Compatibility ⭐⭐⭐⭐ ⭐⭐⭐⭐⭐ ⭐⭐⭐

Alternative Setup Methods

Other Android VPN Options

TorGuard Android App

Full-featured app with WireGuard and OpenVPN

Get App

StrongSwan (IKEv2)

Alternative IPSec implementation

Get StrongSwan

OpenVPN for Android

Most secure open-source option

Setup Guide

Was this article helpful?

Share:

Ready to Get Help?

Our support team is available 24/7 to assist you with any questions.