Skip to content

ws1-client-sdk/com.airwatch.sdk/SDKManager/getServerPort

getServerPort

open fun getServerPort(): Int

Retrieves the port number in which the device is currently enrolled.

Access Level = AW_MANAGED (for details on access permission please check SDKManager)

Return

The port number. Or -1 if no specific port number is attached or if it is default http or https port. Also returns -1 if app is not enrolled.

Throws

Exception Condition
com.airwatch.sdk.AirWatchSDKException if API is not available in Anchor Application or binding with Anchor app fails