ubuntu:network:get_local_ip_address
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ubuntu:network:get_local_ip_address [2021/01/08 14:49] – peter | ubuntu:network:get_local_ip_address [2021/01/08 14:50] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Ubuntu - Network - Get local IP address ====== | ||
- | <code bash> | ||
- | ip route get 1 | sed ' | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | 192.168.1.69 | ||
- | </ | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | <code bash> | ||
- | ip route get 1 | awk ' | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | 192.168.1.69 | ||
- | |||
- | </ |
ubuntu/network/get_local_ip_address.1610117364.txt.gz · Last modified: 2021/01/08 14:49 by peter