Description
This function uses traceroute to retrieve the local IP address.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
This function does not accept parameters.
Returns
| 
 Return  | 
 Type  | 
 Description  | 
 Possible values  | 
 Example  | 
| 
 
  | 
 array of hashes  | 
 An array of hashes that contain information about the traceroute results  | 
 This array of hashes includes the line return.  | 
 
  | 
| 
 line  | 
 string  | 
 The result of the traceroute process. The function returns this value in the unnamed hash.  | 
 The traceroute to string, the host, the IP address in parenthesis, the maximum amount of time the packet requires to travel to the destination, and the packet size , in bytes.  | 
 traceroute to 10.1.14.78 (10.1.14.78), 30 hops max, 60 byte packets  | 
| 
 reason  | 
 string  | 
 A reason for failure. Note: 
 This function only returns areason value if there was an error. 
 
  | 
 A string that describes the error.  | 
 This is an error message.  | 
| 
 result  | 
 Boolean  | 
 Whether the function succeeded. 
  | 
  | 
 1  | 
