Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PaddlePaddle/FastDeploy
/ get_host_ip
Function
get_host_ip
fastdeploy/utils.py:590–595 ·
view source on GitHub ↗
Get host IP address
()
Source
from the content-addressed store, hash-verified
588
589
590
def
get_host_ip():
591
""
"
592
Get host IP address
593
""
"
594
ip = socket.gethostbyname(socket.gethostname())
595
return
ip
596
597
598
def
get_random_port():
Callers
12
__init__
Method · 0.90
__init__
Method · 0.90
create
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
__init__
Method · 0.90
test_fdconfig_nnode
Method · 0.90
test_check_master_tp16_dp1_slave
Method · 0.90
test_check_master_tp16_dp1_master
Method · 0.90
_async_serving_models_init
Function · 0.90
Calls
no outgoing calls
Tested by
4
test_fdconfig_nnode
Method · 0.72
test_check_master_tp16_dp1_slave
Method · 0.72
test_check_master_tp16_dp1_master
Method · 0.72
_async_serving_models_init
Function · 0.72