Class NetworkUtils
java.lang.Object
io.agentscope.core.a2a.server.utils.NetworkUtils
Network utility class for getting current server IP address and port configuration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet local IP address Prefer non-loopback addresses
-
Constructor Details
-
NetworkUtils
public NetworkUtils()
-
-
Method Details
-
getLocalIpAddress
Get local IP address Prefer non-loopback addresses- Returns:
- local IP address
- Throws:
SocketException- network exception
-