Skip to main content

get_http_rpc_host

Function get_http_rpc_host 

Source
pub fn get_http_rpc_host() -> String
Expand description

Get the local IP address for HTTP RPC host binding using the default resolver

This is a convenience function that uses the DefaultIpResolver. It follows the same logic as the TcpStreamServer for IP resolution.

§Returns

A string representation of the resolved IP address, with fallback to “127.0.0.1”