Pango Platform
HomeConsole
  • What is Pango Developer Platform
  • Getting started
    • Sign up on the Management Console
    • Create a new project
    • Switch projects
    • Change console settings
    • Edit your profile
    • Try out the demo app
    • Keep exploring
    • Deprecation and Sunset
  • Console details
    • Dashboard
      • General
      • Location loading
    • Users
      • User page
    • Active sessions
    • Network
      • Countries
      • Locations
      • Pools
        • Optimal location
        • Location rules
    • Settings
      • General
        • Project config description (JSON format)
          • Server selector (JSON format)
          • Request selector (JSON format)
      • Authentication methods
        • Auth Plugin requirements
      • VPN
        • General
        • VPN Bypass list
        • Client Networks
      • Member
    • Export Data
    • Log
  • SDK
    • Unified VPN SDK for Android
      • Setup
        • Application Setup
        • Proguard Rules, Notification, and Analytics Configurations
        • Backend URL Configuration
      • Usage
        • Initialization
        • VPN Interface
        • Backend interface
      • Features
        • Hydra Protocol
          • Location profile (Hydra only)
        • Custom sdk dependencies
        • Deferred VPN Service Initialization
        • Authentication
        • Client Network List (CNL)
        • OpenVPN transport
        • Wireguard Transport
        • Reconnection strategy
        • Single Protocol SDK
        • Killswitch
        • Domain route via VPN
        • Process route via VPN
        • Process Bypass
        • Domain Bypass
        • Traffic rules
        • VPN Node DNS Configuration
        • Multihop
          • Optimal Location
      • Exceptions
      • Version migration
      • Changelog
    • Unified VPN SDK for Apple
      • Setup
        • Application Setup
        • Network Extension Setup
          • Network Extension Setup for tvOS
        • Backend URL Configuration
      • Usage
        • Single Protocol SDK
        • Unified SDK
        • Logging
        • Decoding Encoded VPN SDK Logs
      • Features
        • Deferred VPN Service Initialization
        • Authentication
        • Wireguard Transport
        • Reconnection strategy
        • Killswitch
        • Domain Bypass
        • Multihop
          • Optimal Location
        • Client Network List (CNL)
        • Domain route via VPN
      • Changelog
      • API Reference
    • IPSEC VPN SDK for Apple
    • Unified VPN SDK for Windows
      • Setup
        • Backend URL Configuration
        • Service command line arguments
        • ARM Platform Support
      • Usage
        • CoreAPI
        • Events
        • Generating a Unique Device Identifier
        • Error processing
        • Pipe Messaging
      • Features
        • Traffic protection
          • Killswitch
          • Prevent IP Leaks
          • Block Local Networks
        • Other
          • Firewall
            • DNS Monitor
            • Process Bypass
            • Domain Bypass
            • Process route via VPN
            • Domain route via VPN
          • Throttling
          • Optimal Location
          • Common issues
        • Hydra Protocol
          • CustomDNS, UserDNS, MultiHop, VpnProfiles
        • OpenVPN Protocol
        • Wireguard Protocol
        • IPSec Protocol
      • Collecting Debug Logs
      • Changelog
    • Unified VPN SDK for Routers
      • SDK. Shared library.
      • Configuration Interface (CI)
        • Unix Domain Sockets CI
        • REST API CI
    • Unified VPN SDK Feature Comparison By Platform
    • Unified VPN SDK
      • Features
        • Personal Bridge
    • Tunnel Vision and Tunnel Crack Prevention
  • REST API
    • Partner API
  • Sample applications
    • Unified VPN SDK demo for Windows
    • Hydra VPN SDK demo for iOS
    • IPSEC VPN SDK demo for iOS
    • Unified VPN SDK demo for Android
    • Hydra VPN SDK demo for OpenWRT
    • OpenVPN configuration file
  • Resources
    • Use cases
      • Public VPN
      • Business VPN
        • Creating a Business VPN Project
        • Wi-Fi Security for Business
      • Application anti-blocking
    • How-to
      • Create a Firebase project for User Authentication
      • AWS CloudFront Distribution of the Platform URL
      • How can I get Shared Secret key from iTunes Connect for In-App Purchase
  • FAQ
    • General
      • VPN Platform Flow
      • What data is collected by the Platform?
      • What analytic data is collected by your SDK?
      • How the Platform restricts access to our data?
      • Why DNS Leak tests often indicate positive result?
      • Do we need to perform endpoint health checks?
      • How is the VPN exit node found?
      • How are streams re-marked if VPN is enabled/disabled on an active flow?
      • Is there a maximum number of supported devices?
      • Are both IPv4 and IPv6 supported?
      • What is the MTU of the tunnel?
      • Are any redundancy measures in terms of reliability provided?
      • Is there any load balancing?
      • Do you block broadcast and multicast to/from the VPN?
    • List of Open Source libs
Powered by GitBook
On this page
  • Prerequisites
  • Setup
  • Usage
  • Features usage
  • Troubleshooting
  • Running the bootstrap_service.ps1 Script
  • Error: Application Requires .NET 8.0.0
  • Documentation

Was this helpful?

  1. Sample applications

Unified VPN SDK demo for Windows

This is a demo application for Windows with basic usage of Unified VPN SDK.

PreviousTunnel Vision and Tunnel Crack PreventionNextHydra VPN SDK demo for iOS

Last updated 1 month ago

Was this helpful?

Prerequisites

The following prerequisites are required to use the SDK:

  • Architecture of processor: x86, x64, ARMx64

  • Windows 10 (1607+) / Windows 11 (23H2+). For more information please see

  • Latest version of Visual Studio (recommended)

  • Microsoft Software Development Kit v10+

  • InstalledNET 8.0 Desktop Runtime (v8.0.X) from official Microsoft .NET download page

Setup

  1. Clone app source code locally from .

  2. Right-click on the Command Prompt, select "Run as administrator" from the context menu, then navigate to the unified-sdk-windows-demo directory.

  3. Run the following command: powershell.exe -ExecutionPolicy Bypass -File "bootstrap_service.ps1" The script installs driver (only for x86, x64) and Unified SDK service on your device.

If you encounter any issues while running the bootstrap_service.ps1 script, please refer to the troubleshooting section below for instructions on how to install the service manually.

  1. Once the solution is open, you need to restore NuGet Packages.

  2. Build the "UnifiedSDK.Demo" project.

  1. Navigate to ..\unified-sdk-windows-demo\output\Debug(Release)\UnifiedSDK.Demo\net8.0-windows\, then double-click UnifiedSDK.Demo.exe to launch the demo application.

Usage

  1. In Pango dashboard, create a project and use a name for your project as a Public key. Private key is optional.

  1. Navigate to the Network tab from the navigation bar. Then, click on the Add location button.

  1. In Pango dashboard, navigate to the dashboard and locate your carrier_id.

  2. You are almost ready to connect to the VPN. To initiate the VPN connection process in the demo app:

    1. Enter the carrier ID and backend address in the appropriate fields.

    2. Click the "Initialize SDK service" button. No visible change will occur (except the log message in the log window), which is expected behavior.

    3. Click the "Login" button. The app should now display a "Logged in" message, indicating successful authentication.

      • [Optional] Choose VPN protocol and/or Virtual Location.

    4. Click the "Connect" button. The app will establish the VPN connection, and display a "Connected" message upon success.

  3. Your device is now connected to the VPN. To verify the connection:

    • Open any browser on your device.

    • Navigate to whatsmyip.com (or any other site which can identify your IP).

    • Observe that the IP address displayed is different from your device's actual IP address, confirming that traffic is being routed through the VPN.

  4. To terminate the VPN connection when finished, click the "Disconnect" button in the demo app. This will sever the connection and restore direct network access.

Features usage

Multihop / Custom VPN profiles / Custom DNS

  1. Initialize SDK service.

  2. Select "Use multihop proxy" if needed.

    • Select "Use optimal proxy location" or write your own location description.

  3. Select "Get custom VPN profiles" if needed.

    • After Login select profile from "Custom profiles" combo box.

  4. Select "Use custom DNS" if needed.

    • After Login select profile from "DNS server" combo box.

  5. Fill the "User DNS server address" if you want to define the HTTP URL of DNS-over-HTTPS which should be used for a VPN session. Should be a valid URL.

  6. Click the "Login" button.

  7. Select VPN protocol.

  8. Select virtual location.

  9. Click the "Connect" button.

Block local networks / Prevent IP leak / Enable Killswitch

  1. Initialize SDK service and Login.

  2. Select "Block local networks" if needed. Disabled by default.

    • It blocks all local network connections during the VPN session except for multicast networks

  3. Unselect "Prevent IP leak" if needed. Enabled by default.

    • It blocks IPv6 and DNS requests outside the VPN tunnel.

  4. Select "Enable Killswitch" if needed. Disabled by default.

    • It prevents traffic leakage during an expected VPN tunnel shutdown.

  5. Click the "Connect" button.

Keep Killswitch enabled

  1. Connect to VPN with Killswitch enabled.

  2. Select "Keep killswitch enabled". Disabled by default.

    • It blocks all network connections when or even if VPN was turned off normally/manually.

    • It still allows to Unified SDK to connect to another location.

  3. Click the "Disconnect" button.

  4. To disable this feature, unselect "Keep killswitch enabled" and call disconnect one more time.

VPN bypass domains/applications (only x86 and x64 architecture )

  1. Fill the domains/applications (full path required).

  2. Click the "Apply" button.

  3. Connect to VPN.

Throttling configuration (only x86 and x64 architecture)

  1. Select "Enable throttling".

  2. Set global speed limits in Bit/second.

  3. Set local speed limits in Bit/second.

    • Add the process you want to throttling by clicking the "Add process" button and filling the process name.

    • Click the "Add speed limit" button if you want to add another one local speed limit.

  4. Click the "Send configuration button".

  5. Click the "Connect" button.

Route via VPN (only x86 and x64 architecture)

  1. Click on the "Initialize SDK service" button.

  2. Click on the "Loggin" button.

  3. Uncheck "Prevent IP leaks" checkbox.

  4. Check "Enable RouteViaVPN" checkbox.

  5. Fill "Route via VPN applications" text box with full path to .exe file.

  6. Fill "Route via VPN domains" text box.

  7. Click "Apply" button.

  8. Click "Connect" button.

Troubleshooting

Running the bootstrap_service.ps1 Script

If you encounter issues running the bootstrap_service.ps1 script successfully, follow these steps to execute the commands in the script manually:

1. Open Command Prompt:

  • Right-click on the Command Prompt icon.

  • Select "Run as administrator" to open it with elevated privileges.

2. Navigate to the unified SDK folder:

  • Use the cd command followed by the full path to the unified-sdk-windows-demo directory.

  • For example: cd C:\Path\To\unified-sdk-windows-demo\.

3. Check if netfilter2 is installed (only for x86, x64):

  • Run the command: sc.exe query partner_netfilter2.

  • If the output says, "The specified service does not exist as an installed service," proceed to the next step.

4. Create a new netfilter2 service:

  • Run the command: sc.exe create partner_netfilter2 binPath="C:\Path\To\unified-sdk-windows-demo\service\netfilter\partner_netfilter2.sys" type= kernel start= auto.

  • Replace C:\Path\To\unified-sdk-windows-demo\ with the actual path to your unified-sdk-windows-demo directory.

  • The output should indicate: [SC] CreateService SUCCESS.

5. Verify the netfilter2 service:

  • Run the command: sc.exe query partner_netfilter2 again.

  • The output should display the service details, including:

SERVICE_NAME: partner_netfilter2
TYPE: 1 KERNEL_DRIVER
WIN32_EXIT_CODE: 1 STOPPED
...

6. Install the Unified SDK service:

  • Run the command: "C:\Path\To\unified-sdk-windows-demo\service\UnifiedSDK.Service.exe" -install UnifiedSDKService.

  • Replace "C:\Path\To\unified-sdk-windows-demo\" with the actual path to your unified-sdk-windows-demodirectory.

By following these steps, you should be able to manually execute the commands from the bootstrap_service.ps1 script and resolve any issues you were facing.

Error: Application Requires .NET 8.0.0

When attempting to run the application, you encounter the following message: "You must install or update .NET to run this application".

  1. Visit the official Microsoft .NET download page and download NET 8.0 Desktop Runtime (v8.0.X) for installed operating system

  2. Download and run the installer, following the on-screen instructions.

  3. Try running the demo application again. It should now launch successfully.

Documentation

Launch , navigate to the folder containing the recently downloaded project from GitHub and open the solution file "..\unified-sdk-windows-demo\src\UnifiedSDK.Demo.sln".

Sign in at .

Note that at this time, it is not possible for users to create their own accounts directly if they do not already have an account established with example.com. Please contact your sales representative to initiate account creation as part of the project and client onboarding process or . We apologize for any inconvenience.

You can find the backend URL for Prod/Stage/Dev .

For more detailed information, please refer to .

Visual Studio
pango-cloud.com
contact us
here
SDK documentation
https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md
this GitHub
NetFilter SDK
Unified SDK service is running after install
Restore NuGet Packages
Build the project
Create project page
Network page
Carrier ID and backend address fields