NetworkUtils
public class NetworkUtils
源码Source
io/agentscope/core/a2a/server/utils/NetworkUtils.java:30–75Network Utils,支持智能体之间的发现、委派与协作。位于 io.agentscope.core.a2a.server.utils 包。核心成员包括 getLocalIpAddress。
Network utility class for getting current server IP address and port configuration
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static String getLocalIpAddress() throws SocketExceptionstatic | 获取 `getLocalIpAddress`。 Get local IP address Prefer non-loopback addresses |
方法详情Method Detail
getLocalIpAddress
public static String getLocalIpAddress() throws SocketException
static
获取 getLocalIpAddress。
Get local IP address Prefer non-loopback addresses
String返回字符串结果。local IP address
SocketException可能抛出 `SocketException`。Thrown when the operation cannot be completed.
源码Source
io/agentscope/core/a2a/server/utils/NetworkUtils.java:38–66