mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
get Local IP
This commit is contained in:
@@ -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.
Reference in New Issue
Block a user