Skip to main content
All posts
Technical GuideUpdated

Deploying LocalWarp architecture: self-hosting, connector daemon setup, and RSD protocol

A comprehensive guide to the LocalWarp architecture. Learn how the local-first Connector daemon communicates with iOS via Remote Service Discovery (RSD) over USB and Wi-Fi without cloud relays.

LocalWarp local architecture showing browser workbench, desktop connector daemon, and iPhone connection

Most commercial location changers rely on reverse-engineered proxy servers, cloud GPS relays, or modified installation packages (IPAs). These setups introduce severe privacy risks because your real GPS coordinates, Apple device identifiers (UDID), and account sessions pass through third-party servers.

LocalWarp uses a local-first client architecture. All coordinate overrides travel directly from your web browser to a background Connector daemon on your machine (127.0.0.1:28888), which then transmits them to your iPhone via Apple's native Remote Service Discovery (RSD) channel.

This guide explains how this architecture operates and how to configure the Connector as a background service on macOS and Windows. It also covers Wi-Fi pairing, which is separate from enhanced location: enhanced mode presents a USB GPS accessory and suppresses background lookups through DNS, so the cable stays connected for the whole session.

The three-tier architecture

The LocalWarp system consists of three distinct components operating entirely within your local hardware boundary:

+--------------------------------------------------------------+
|                     1. Browser workbench                     |
|    Interactive Map UI / Coordinate Picker / Route Engine     |
+------------------------------+-------------------------------+
                               |
                   Local HTTP / WebSocket
                   (127.0.0.1:28888)
                               |
+------------------------------v-------------------------------+
|                 2. Local connector daemon                    |
|  Device Discovery / Pairing Keys / CoreDevice RSD Transport  |
+------------------------------+-------------------------------+
                               |
                    USB Tunnel / Local Wi-Fi
                    (Apple RemoteXPC / RSD)
                               |
+------------------------------v-------------------------------+
|                      3. Target iOS device                    |
|    CoreLocation Daemon (locationd) / Simulated GPS Buffer    |
+--------------------------------------------------------------+

1. Browser workbench (src/frontend)

The presentation layer runs locally in any modern Chromium or WebKit browser. When you select a destination or plan a multi-point route, the workbench calculates raw latitude, longitude, altitude, and simulated speed vectors. It never sends these coordinates to a remote telemetry server; instead, it posts an authenticated JSON payload directly to the loopback interface on your own computer.

2. Desktop connector daemon

The desktop companion is a lightweight, headless binary running on macOS (Darwin) or Windows (x86_64 / ARM64). It binds strictly to 127.0.0.1:28888 and refuses non-loopback connections. Its responsibilities include:

  • Scanning the local USB bus via libusb / IOKit for connected Apple devices.
  • Managing device pairing records (/var/db/lockdown on macOS or %ProgramData%\Apple\Lockdown on Windows).
  • Negotiating secure TLS handshakes over Apple's Remote Service Discovery (RSD) port.
  • Issuing CoreDevice location simulation calls (com.apple.coredevice.locationservice).

3. Target iPhone (locationd)

The operating system on the iPhone receives the simulated coordinates into its volatile memory cache. From that moment forward, any application querying the standard iOS positioning API (CLLocationManager) receives the injected coordinate instead of hardware satellite fixes.

Architectural comparison: local daemon vs cloud proxy

DimensionLocalWarp (Local Daemon)Traditional Cloud SpooferCustom Xcode Debugger
Data path100% on-device loopbackRoutes through cloud relayDirect USB cable session
Privacy riskZero server coordinate trackingHigh (cloud logs every location)Zero (Apple internal tools)
Network latencyUnder 2 ms (localhost)120 - 450 ms (cloud hops)Under 2 ms (USB)
Cable dependencyOrdinary may persist; enhanced needs USBCable required continuouslyCable disconnect kills session
Setup overhead30-second binary launchRequires complex VPN profilesRequires 40GB Xcode install
iOS 17+ compatibilityFull (Native CoreDevice RSD)Broken on iOS 17+Full (Official Xcode channel)

Deploying the connector as a persistent service

For regular use, running the desktop connector as an automated background service avoids the need to manually open terminal windows or execute launch scripts every morning.

Deploying on macOS via launchd

macOS manages background daemons through launchd. You can install the LocalWarp Connector as a user-level Launch Agent:

  1. Download the macOS connector archive from the download page and move the binary to your local user binary directory:

    mkdir -p ~/.local/bin
    cp LocalWarpConnector ~/.local/bin/localwarp-connector
    chmod +x ~/.local/bin/localwarp-connector
    
  2. Create a launch agent definition at ~/Library/LaunchAgents/com.localwarp.connector.plist:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Label</key>
        <string>com.localwarp.connector</string>
        <key>ProgramArguments</key>
        <array>
            <string>/Users/your-username/.local/bin/localwarp-connector</string>
            <string>--port</string>
            <string>28888</string>
            <string>--bind</string>
            <string>127.0.0.1</string>
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>StandardOutPath</key>
        <string>/tmp/localwarp-connector.log</string>
        <key>StandardErrorPath</key>
        <string>/tmp/localwarp-connector.err</string>
    </dict>
    </plist>
    
  3. Load and start the service:

    launchctl load ~/Library/LaunchAgents/com.localwarp.connector.plist
    launchctl start com.localwarp.connector
    
  4. Verify that the daemon is listening:

    curl -s http://127.0.0.1:28888/api/health | jq .
    # Expected output: {"status":"healthy","version":"1.4.3","devices":0}
    

Deploying on Windows via task scheduler

On Windows 10 and 11, the LocalWarp MSI installer configures a background service automatically. For portable executable setups:

  1. Place LocalWarpConnector.exe into C:\Program Files\LocalWarp\.
  2. In PowerShell, create an automated logon task:
    $Action = New-ScheduledTaskAction -Execute "C:\Program Files\LocalWarp\LocalWarpConnector.exe" -Argument "--port 28888"
    $Trigger = New-ScheduledTaskTrigger -AtLogOn
    $Principal = New-ScheduledTaskPrincipal -UserId "$env:USERNAME" -LogonType Interactive -RunLevel Highest
    $Settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries -RestartCount 3
    Register-ScheduledTask -TaskName "LocalWarpConnector" -Action $Action -Trigger $Trigger -Principal $Principal -Settings $Settings
    
  3. Run the task:
    Start-ScheduledTask -TaskName "LocalWarpConnector"
    

Remote service discovery and Wi-Fi pairing

Apple deprecated legacy Developer Disk Image (DDI) mount interfaces in favor of Remote Service Discovery (RSD) starting with iOS 17.

How RSD establishes the tunnel

When an iPhone connects to your computer:

  1. The host computer and iPhone negotiate an encrypted point-to-point IPv6 link-local network interface over the USB connection.
  2. The iPhone announces available developer services across port 58783 using the RemoteXPC transport layer.
  3. The LocalWarp Connector authenticates using the shared pairing identity key generated during the initial Trust prompt.
  4. Once authenticated, the connector acquires a handle to com.apple.coredevice.locationservice and issues simulated GPS coordinate packets.

Wireless Wi-Fi discovery

After initial USB pairing, the iPhone stores the host computer's public key in its keychain. If both devices share the same local Wi-Fi subnet:

  • The iPhone advertises its RSD port via mDNS (Bonjour) under the service type _remotexpc._tcp.local.
  • The LocalWarp Connector listens for these mDNS packets and automatically rebuilds the secure TLS control channel without requiring a physical cable.
  • Wi-Fi discovery helps the Connector find a paired phone, but an enhanced location session still needs the USB cable connected throughout.

Troubleshooting production environments

IssueRoot CausePractical Fix
Error: Address already in use (:28888)An older connector instance or another development server holds the portRun lsof -i :28888 on Mac or netstat -ano | findstr 28888 on Windows, kill the stale PID, and restart the daemon.
Browser reports "Connection Refused"Browser blocks private network requests or daemon is stoppedOpen chrome://flags/#block-insecure-private-network-requests and ensure localhost exceptions are allowed.
Wi-Fi device disappears after sleepWireless router has Client Isolation (AP Isolation) enabledDisable AP Isolation in your router settings, or reconnect with a USB cable for 5 seconds to wake up the RSD socket.
Coordinates revert after 10 minutesMemory pressure on older iOS models causing locationd restartOpen the workbench, select your coordinates, and keep heavy background applications closed.

Architecture summary

Deploying LocalWarp on your local machine provides privacy and reliable control over iOS location services without third-party cloud relays.

Setup packages are available on the Download Hub. For initial USB setup, follow the iPhone GPS Setup Guide, the full Change iPhone GPS Location Pillar Guide, or the Enhanced Location DNS Suppression Guide. See why no-computer GPS changers cannot match tethered CoreDevice injection, or generate street-level routes in the AI Landmark & Route Discovery workspace before applying coordinates in the Web Workbench.