get Local IP

This commit is contained in:
pucherot
2021-01-28 13:59:34 +01:00
parent 933ca8d0d8
commit e694ed0a43
3 changed files with 14 additions and 0 deletions

View File

@@ -88,6 +88,11 @@ Estimated time: 20'
```
hostname -I
```
or this one if have severals interfaces
```
ip -o route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'
```
- http://192.168.1.x/admin/
- (*replace 192.168.1.x with your Raspberry IP*)
@@ -98,6 +103,11 @@ Estimated time: 20'
```
hostname -I
```
or this one if have severals interfaces
```
ip -o route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'
```
- Pi-hole admin portal -> Local DNS -> DNS Records -> Add new domain /IP
- pi.alert 192.168.1.x
- (*replace 192.168.1.x with your Raspberry IP*)
@@ -288,6 +298,10 @@ block is not necessary
```
hostname -I
```
or this one if have severals interfaces
```
ip -o route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'
```
- Pi-hole admin portal -> Local DNS -> DNS Records -> Add new domain /IP
- pi.alert 192.168.1.x
- (*replace 192.168.1.x with your Raspberry IP*)

Binary file not shown.

Binary file not shown.