SSTP
SSTP (Secure Socket Tunneling Protocol) carries a VPN connection inside HTTPS on TCP port 443. SRP VPN Connect connects to SSTP servers on iPhone and Android with the same SSTP and PPP code on both.
How an SSTP connection works
- TCP and TLS. The app opens a TCP connection to the server, directly or through a proxy, and starts TLS. It checks the server's certificate against the server's name.
- HTTP. Inside TLS the app sends one HTTP request,
SSTP_DUPLEX_POST, and the server answers it. From then on the connection carries SSTP packets both ways. - PPP. SSTP carries PPP. PPP agrees on the link, then logs the user in with one of the methods the profile allows: MS-CHAPv2, PAP or CHAP, or EAP (EAP-MSCHAPv2, PEAP, EAP-TTLS, TEAP or, with a client certificate, EAP-TLS).
- Crypto binding. After the login, the app sends the server a value computed from the login's keys and the server certificate it saw. A server that checks it, as Windows does, can tell that nobody in the middle replaced the TLS connection.
- Addresses. PPP gives the phone an IPv4 address and DNS servers. All of the phone's IPv4 traffic then goes through the tunnel.
Servers we set up
Each guide sets up a server the way our test server is set up, and each was tested with the app on an iPhone and on an Android phone.
| Server | Guide | How it is set up |
|---|---|---|
| Windows Server 2019, 2022 and 2025 | Windows Server | Routing and Remote Access with Network Policy Server, step by step with screenshots. |
| MikroTik RouterOS 7 | MikroTik RouterOS | RouterOS command line. |
| SoftEther VPN Server 4.44 | SoftEther VPN Server | Ubuntu and vpncmd command line. |
| FreeRADIUS 3.2.5 (optional) | FreeRADIUS | One user list for the servers above, and PEAP, EAP-TTLS and EAP-TLS for Windows Server 2025, the one of them that sends EAP to it. |
Where to start
- Set up a server with one of the guides above.
- Install the app: on iPhone from TestFlight, on Android by building it from the source; see Installation. On iPhone use TestFlight build 39 (commit
c088fdb7) or later, the first with all of the SSTP behaviour these pages describe: it adds passwords with characters outside ASCII to what build 36 (commit868a4df1) brought, the connection log included. - Add an SSTP profile: Setting up the app.
- The server settings that matter to the app, and what each profile field does: Configuration Reference.
- If it does not connect: Troubleshooting.
What was tested
Test results lists every case we ran against these servers, with its result on each phone: every authentication method, TLS setting, TLS Fragmentation mode, Custom SNI, the proxy modes, uploads and downloads at once, and what happens on sleep, on a dropped connection and when Retry Times runs out.