Skip to main content

Demonstrate Port Forwarding with a Web Server

Corellium simplifies the process of setting up port forwarding on iOS devices. In this example, we'll walk you through how to forward a service from one device, making it accessible from another.

  1. Create two virtual iOS devices in the same project.

  2. Start a web server on one of the devices, and take note of the port used.

    python3 -m http.server 8080
  3. Configure the port forwarding on the same device used to start the web server. We'll be using 8080 as the device port and 8888 as the router port. (For more info on these four parameters, see our port forwarding article.)

    Configure Ports

  4. On the second device in the same project, navigate to Safari and type in the service IP of the web server device along with router port configured earlier into the search bar.

    ServiceIP:RouterPort

    Svip and routerport to access web server

  5. You should see the web server's directory listing appear on the second device.

    Accessed web server