# Can't Access Internet anymore

**URL:** https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121
**Category:** Help
**Created:** [April 26, 2020, 2:43pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121 "2020-04-26T14:43:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Fr3d-P](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/49beb7/32.png) [@Fr3d-P](https://discourse.pi-hole.net/u/Fr3d-P)
#### Post date: [April 26, 2020, 2:43pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121/1 "2020-04-26T14:43:16Z")

</div>

## Expected Behaviour:

Access internet from the pi

## Actual Behaviour:

ping google.com -\> Temporary failure in name resolution  
ping 8.8.8.8 -\> From 192.168.68.108 icmp\_seq=1 Destination Host Unreachable

## Debug Token:

None

## Here's my problem...

Pi-hole worked properly, but after some times, it didn't work anymore.  
The pi was still working, but pi-hole was not reachable from the user interface.

I tried `pihole -up`, but my machine couldn't reach internet anymore (all other machines on my network works, just they now don't pass thru pi-hole).

I tried many things to reconnect the pi to internet, but nothing worked, so I thought that it should be easier to uninstall and reinstall pi-hole.

After succesfully uninstall pi-hole, the problem was still here... I don't see wat's wrong with my configuration

`/etc/dhcpcd.conf`

```auto
interface wlan0
        static ip_address=192.168.68.108/24
        static routers=192.168.0.1
        static domain_name_servers=192.168.0.1

```

netstat -r is giving

```auto
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0
192.168.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 wlan0
192.168.68.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0

```

The pi is correctly connected with the wifi (I use SSH to work from my mac), the mac has DHCP router 192.168.0.1, and DNS server 192.168.0.1

What else can I search to correct my configuration?

---

<div class="post-metadata">

### Author: ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)
#### Post date: [April 26, 2020, 3:22pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121/2 "2020-04-26T15:22:47Z")

</div>

> [@Fr3d-P](#):
>
> ```auto
> static ip_address=192.168.68.108/24
> static routers=192.168.0.1
> static domain_name_servers=192.168.0.1
> 
> ```

The static IP address is on a different IP range than the router and name servers.

192.168.68.x for the Pi won't talk to 192.168.0.x for the rest of the network.

---

<div class="post-metadata">

### Author: ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)
#### Post date: [April 26, 2020, 3:23pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121/3 "2020-04-26T15:23:01Z")

</div>

EDIT: and again beaten by @jfb😉

The IP address assigned to Pi-hole **192.168.68**.108/24 is in different subnet as the router is in **192.168.0**.1/xxx.  
Try assign an IP to Pi-hole that is in the same subnet as the router is in eg 192.168.0.2/24 (if 192.168.0.2 is still available).  
And when changing IP, you have to tell Pi-hole of the change by running below and select **reconfigure** :

`pihole -r`

Test connectivity on a connected PC (Windows/Linux/MacOS) with the `nslookup` tool in a command/terminal prompt eg:

`nslookup pi.hole`

`nslookup pi.hole 192.168.0.2`

---

<div class="post-metadata">

### Author: ![Fr3d-P](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/49beb7/32.png) [@Fr3d-P](https://discourse.pi-hole.net/u/Fr3d-P)
#### Post date: [April 28, 2020, 12:44pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121/4 "2020-04-28T12:44:06Z")

</div>

Thanks for your input @jfb and @deHakkelaar!  
That was it! The IP address was the one I used in my first installation of pi-hole, I used the same in the second installation, and now it isn't anymore in the good IP range???  
I suppose something changed on the router side...

So now I was able to connect the internet, and install pi-hole again from scratch, but I can't access the web interface?  
My IP is now 192.168.0.108  
Il i try [http://192.168.0.108:8080/admin](http://192.168.0.108:8080/admin) I have 404 Not found, it should be the apache server, not lighttpd, because [http://192.168.0.108:8080](http://192.168.0.108:8080) brings me to the apache2 default page...  
Just after installation I modified /etc/lighttpd/lighttpd.conf to use port 8080  
in /etc/lighttpd/lighttpd.conf  
`server.port = 8080`  
lighttpd is running  
sudo service lighttpd status -l

```auto
● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset:
   Active: active (running) since Tue 2020-04-28 14:00:29 CEST; 39min ago
  Process: 670 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.con
 Main PID: 938 (lighttpd)
    Tasks: 6 (limit: 2200)
   Memory: 26.7M
   CGroup: /system.slice/lighttpd.service
           ├─ 938 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
           ├─ 947 /usr/bin/php-cgi
           ├─1188 /usr/bin/php-cgi
           ├─1189 /usr/bin/php-cgi
           ├─1190 /usr/bin/php-cgi
           └─1191 /usr/bin/php-cgi

Apr 28 14:00:26 piCloud systemd[1]: Starting Lighttpd Daemon...
Apr 28 14:00:29 piCloud systemd[1]: Started Lighttpd Daemon.

```

And I don't see any errors in /var/log/lighttpd/error.log

```auto
2020-04-27 16:33:36: (server.c.1464) server started (lighttpd/1.4.53) 
2020-04-27 16:36:26: (server.c.2059) server stopped by UID = 0 PID = 1 
2020-04-27 16:45:54: (server.c.1464) server started (lighttpd/1.4.53) 
2020-04-28 13:59:59: (server.c.2059) server stopped by UID = 0 PID = 1 
2020-04-28 14:00:29: (server.c.1464) server started (lighttpd/1.4.53) 

```

What else have I missed?

---

<div class="post-metadata">

### Author: ![Fr3d-P](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/f/49beb7/32.png) [@Fr3d-P](https://discourse.pi-hole.net/u/Fr3d-P)
#### Post date: [April 28, 2020, 1:55pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121/5 "2020-04-28T13:55:58Z")

</div>

Don't worry.  
I installed again and now I've got the web interface... Thanks

---

<div class="post-metadata">

### Author: ![system](https://discourse.pi-hole.net/uploads/default/original/3X/7/c/7c8792f649eeb921c5d2b4c41564ffa873d9a2b8.png) [@system](https://discourse.pi-hole.net/u/system)
#### Post date: [May 19, 2020, 1:56pm UTC](https://discourse.pi-hole.net/t/cant-access-internet-anymore/31121/6 "2020-05-19T13:56:02Z")

</div>

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