PortSIP VoIP SDK Manual for iOS  16.2
PortSIP features our newest, supported, quality-assured VoIP SDK used by Several hundred companies around the world for easy VoIP application develop and quality-assured code.
Functions
NIC and local IP functions

Functions

(int) - PortSIPSDK::getNICNums
 Get the Network Interface Card numbers. More...
 
(NSString *) - PortSIPSDK::getLocalIpAddress:
 Get the local IP address by Network Interface Card index. More...
 

Detailed Description

Function Documentation

◆ getNICNums()

- (int) getNICNums

Get the Network Interface Card numbers.

Returns
If the function succeeds, it will return NIC numbers, which are greater than or equal to 0. If the function fails, it will return a specific error code.

◆ getLocalIpAddress:()

- (NSString*) getLocalIpAddress: (int)  index

Get the local IP address by Network Interface Card index.

Parameters
indexThe IP address index. For example, suppose the PC has two NICs. If we want to obtain the second NIC IP, please set this parameter as 1, and the first NIC IP index 0.
Returns
The buffer for receiving the IP.