jacinle.utils.network#

Functions

get_free_port()

get_free_port_from(start_port)

get_local_addr()

Get the local IP address of the machine.

get_local_addr_v1()

Get the local IP address of the machine.

get_local_addr_v2()

Get the local IP address of the machine.

Functions

get_free_port()[source]#
get_free_port_from(start_port)[source]#
get_local_addr()[source]#

Get the local IP address of the machine.

Returns:

the local IP address.

Return type:

str

get_local_addr_v1()[source]#

Get the local IP address of the machine. This is the old version of get_local_addr.

Returns:

the local IP address.

Return type:

str

get_local_addr_v2()[source]#

Get the local IP address of the machine. This is the new version of get_local_addr.

Returns:

the local IP address.

Return type:

str