This is network information from the Java VM currently running on this server.
From java.net.InetAddress.getLocalHost()
| Call | Value |
|---|---|
| getCanonicalHostName() | 2cfccfe351dd |
| getClass().getName() | java.net.Inet4Address |
| getHostAddress() | 172.17.0.2 |
| getHostName() | 2cfccfe351dd |
| isSiteLocalAddress() | Yes |
| toString() | 2cfccfe351dd/172.17.0.2 |
From NetworkInterface.getNetworkInterfaces()
| eth0 | |
|---|---|
| getDisplayName() | eth0 |
| getName() | eth0 |
| toString() | name:eth0 (eth0) |
| InetAddress[0].getCanonicalHostName() | 2cfccfe351dd |
| InetAddress[0].getClass().getName() | java.net.Inet4Address |
| InetAddress[0].getHostAddress() | 172.17.0.2 |
| InetAddress[0].getHostName() | 2cfccfe351dd |
| InetAddress[0].isSiteLocalAddress() | Yes |
| InetAddress[0].toString() | 2cfccfe351dd/172.17.0.2 |
| lo | |
|---|---|
| getDisplayName() | lo |
| getName() | lo |
| toString() | name:lo (lo) |
| InetAddress[0].getCanonicalHostName() | localhost |
| InetAddress[0].getClass().getName() | java.net.Inet6Address |
| InetAddress[0].getHostAddress() | 0:0:0:0:0:0:0:1%lo |
| InetAddress[0].getHostName() | localhost |
| InetAddress[0].isSiteLocalAddress() | No |
| InetAddress[0].toString() | localhost/0:0:0:0:0:0:0:1%lo |
| InetAddress[1].getCanonicalHostName() | localhost |
| InetAddress[1].getClass().getName() | java.net.Inet4Address |
| InetAddress[1].getHostAddress() | 127.0.0.1 |
| InetAddress[1].getHostName() | localhost |
| InetAddress[1].isSiteLocalAddress() | No |
| InetAddress[1].toString() | localhost/127.0.0.1 |