# Pi-hole: How do I force the WLAN IP address to 192.168.42.1 after installation?

**URL:** <https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267>\
**Category:** General Discussion\
**Tags:** wifi\
**Created:** [6 June 2026 09:48 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267 "2026-06-06T09:48:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ubulau](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/u/91b2a8/32.png) [@ubulau](https://dietpi.com/forum/u/ubulau)\
**Post date:** [6 June 2026 09:48 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/1 "2026-06-06T09:48:34Z")

</div>

Hello,

I installed Pi-hole and Hotspot on my Raspberry Pi 4. The static IP address on the network is 192.168.1.100.

But to access the Raspberry Pi without going through the network, I installed Hotspot, which has the IP address 192.168.42.1 on the WLAN.

When I installed Pi-hole, it configured the static IP address 192.168.1.100 instead of the one I want for the Hotspot, 192.168.42.1.

How can I change the Pi-hole settings to force the Hotspot to use the IP address 192.168.42.1? Thank you for your help.

Laurent

-------- **info** --------

dietpi@DietPi:~$ ip a show wlan0  
inet 192.168.42.1/24 brd 192.168.42.255 scope global wlan0

DietPi v10.3.3

- Device model : RPi 4 Model B (aarch64)
- LAN IP : 192.168.1.100 (eth0)
- MOTD : Debian 13 Trixie
- dietpi@DietPi:~$ uname --all  
Linux DietPi 6.12.75+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.12.75-1+rpt1~bookworm (2026-03-11) aarch64 GNU/Linux
- Architecture | arm64

####

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 June 2026 10:11 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/2 "2026-06-06T10:11:26Z")

</div>

Simply go into PiHole settings and set PiHole to accept requests on all interfaces.

---

<div class="post-metadata">

**Author:** ![ubulau](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/u/91b2a8/32.png) [@ubulau](https://dietpi.com/forum/u/ubulau)\
**Post date:** [6 June 2026 10:52 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/3 "2026-06-06T10:52:58Z")

</div>

How do I do this?

Can it be done through the web interface at [http://192.168.1.100:8089/admin/settings/all](http://192.168.1.100:8089/admin/settings/all)?

And in which Pi-hole settings menu?

---

<div class="post-metadata">

**Author:** ![Jappe](https://dietpi.com/forum/user_avatar/dietpi.com/jappe/32/1788_2.png) [@Jappe](https://dietpi.com/forum/u/Jappe)\
**Post date:** [6 June 2026 11:34 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/4 "2026-06-06T11:34:52Z")

</div>

By default the pihole WebUI listens on all interfaces, I think Joulinar was talking about the interface for receiving DNS requests.  
So the webUI should be available via both IPs, 1.100 via Ethernet and 42.1 via wifi.

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 June 2026 12:14 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/5 "2026-06-06T12:14:07Z")

</div>

It’s within the DNS settings (Expert)

[http://pi.hole/admin/settings/dns](http://pi.hole/admin/settings/dns)

There you can set the interface to `Permit all origins`

---

<div class="post-metadata">

**Author:** ![ubulau](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/u/91b2a8/32.png) [@ubulau](https://dietpi.com/forum/u/ubulau)\
**Post date:** [7 June 2026 12:58 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/6 "2026-06-07T12:58:44Z")

</div>

it’s ok  
with 42.1 thank you for your help

---

<div class="post-metadata">

**Author:** ![system](https://dietpi.com/forum/uploads/default/original/1X/7e1021de2213860bce185915ce2c1786e56490ec.png) [@system](https://dietpi.com/forum/u/system)\
**Post date:** [5 September 2026 12:59 UTC](https://dietpi.com/forum/t/pi-hole-how-do-i-force-the-wlan-ip-address-to-192-168-42-1-after-installation/25267/7 "2026-09-05T12:59:13Z")

</div>

Closed on 5 September 2026 12:59 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
