Skip to main content
jie
Staff
Staff
Dec 5, 2025 5:54 AM UTC

Troubleshooting Tip: How to resolve the issue of error 'Unable to get host and port for gateway 0' on iOS devices when using IPSec VPN

Description This article describes how to resolve the issue of the error 'Unable to get host and port for gateway 0' on iOS devices for SAML auth
Scope FortiClient iOS, FortiClient EMS.
Solution

Sometimes, when connecting to an IPSec VPN by using SAML authentication on an iOS device, it shows the error 'Unable to get host and port for gateway 0'.

 

This is usually caused by no SAML port is defined in the assigned IPSec VPN profile. Go to EMS -> Endpoint Profiles -> Remote Access, select the assigned profile, edit the tunnel that is being used and select the Advanced Settings. Confirm that the SAML port is defined here. 

 

1.png

 

1.png

 

1.png

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024