Class that prints out all the information about your Network Interfaces
mvn clean package
Maven Exec: mvn exec:java
or
Command Line: java -jar target/networkinterface_info-1.0-fat.jar
or
Native Image: mvn clean package -Pnative -DskipTests
Then run: ./target/network-info
Output:
Display name: utun6
Name: utun6
Index: 25
InetAddress: /fe80:0:0:0:4068:72cf:613a:ede1%utun6
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 25
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 1380
-------------------------------------------
Display name: utun5
Name: utun5
Index: 24
InetAddress: /fe80:0:0:0:35c:14da:9e4d:372c%utun5
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 24
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 1380
-------------------------------------------
Display name: utun4
Name: utun4
Index: 23
InetAddress: /fe80:0:0:0:75e9:88af:ef98:adf2%utun4
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 23
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 1380
-------------------------------------------
Display name: utun3
Name: utun3
Index: 22
InetAddress: /fe80:0:0:0:ea00:e1b2:55cd:ec9f%utun3
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 22
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 1380
-------------------------------------------
Display name: utun2
Name: utun2
Index: 21
InetAddress: /fe80:0:0:0:ce81:b1c:bd2c:69e%utun2
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 21
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 1000
-------------------------------------------
Display name: utun1
Name: utun1
Index: 20
InetAddress: /fe80:0:0:0:1036:6aac:c2ba:e316%utun1
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 20
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 2000
-------------------------------------------
Display name: utun0
Name: utun0
Index: 19
InetAddress: /fe80:0:0:0:278e:bb6e:ae7a:2cd9%utun0
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 19
Up? true
Loopback? false
PointToPoint? true
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 1380
-------------------------------------------
Display name: llw0
Name: llw0
Index: 17
InetAddress: /fe80:0:0:0:7014:edff:fe84:4a7c%llw0
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 17
Up? true
Loopback? false
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: 72:14:ED:84:4A:7C
MTU: 1500
-------------------------------------------
Display name: awdl0
Name: awdl0
Index: 16
InetAddress: /fe80:0:0:0:7014:edff:fe84:4a7c%awdl0
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 16
Up? true
Loopback? false
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: 72:14:ED:84:4A:7C
MTU: 1500
-------------------------------------------
Display name: anpi0
Name: anpi0
Index: 6
InetAddress: /fe80:0:0:0:f0cf:8bff:fedc:bc31%anpi0
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 6
Up? true
Loopback? false
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: F2:CF:8B:DC:BC:31
MTU: 1500
-------------------------------------------
Display name: anpi2
Name: anpi2
Index: 5
InetAddress: /fe80:0:0:0:f0cf:8bff:fedc:bc33%anpi2
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 5
Up? true
Loopback? false
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: F2:CF:8B:DC:BC:33
MTU: 1500
-------------------------------------------
Display name: anpi1
Name: anpi1
Index: 4
InetAddress: /fe80:0:0:0:f0cf:8bff:fedc:bc32%anpi1
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 4
Up? true
Loopback? false
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: F2:CF:8B:DC:BC:32
MTU: 1500
-------------------------------------------
Display name: en0
Name: en0
Index: 15
InetAddress: /fd50:f92b:96d8:47c8:8cb:67da:4b4b:283d%en0
is AnyLocal: false
is LinkLocal: false
is Loopback: false
ScopeId: 15
InetAddress: /fe80:0:0:0:b8:7bdd:581f:1802%en0
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 15
InetAddress: /192.168.1.187
is AnyLocal: false
is LinkLocal: false
is Loopback: false
Up? true
Loopback? false
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: F0:2F:4B:13:73:98
MTU: 1500
-------------------------------------------
Display name: lo0
Name: lo0
Index: 1
InetAddress: /fe80:0:0:0:0:0:0:1%lo0
is AnyLocal: false
is LinkLocal: true
is Loopback: false
ScopeId: 1
InetAddress: /0:0:0:0:0:0:0:1%lo0
is AnyLocal: false
is LinkLocal: false
is Loopback: true
ScopeId: 1
InetAddress: /127.0.0.1
is AnyLocal: false
is LinkLocal: false
is Loopback: true
Up? true
Loopback? true
PointToPoint? false
Supports multicast? true
Virtual? false
Hardware address: No Hardware Address
MTU: 16384
-------------------------------------------