No internet access after changing port

I have changed the port that pihole runs on to 8017.
This was due to a conflict with Home Assistant and the emulated hue bridge.
Since changing the lightpd.conf file I get dns lookup errors when browsing the web through a VPN (OpenVPN installed via PiVPN)
As a secondary issue pihole does not block adverts on my android device, S6.

Run pihole -d for a debug token. When an ad is blocked, it will be redirected to the Pi-hole. It will request something from either port 80 or 443 of the Pi-hole (depending on if it was HTTP or HTTPS) since we can't change the port when redirecting via DNS.

Thanks for taking the time to help.
I've managed to get internet access back, but still no blocking if adds.
Debug token is lwx6b8x18c

There looks to be an issue with the IP stack on the Pi-hole. There is an IPv6 address configured in setupVars.conf but it doesn't look like the device actually has an IPv6 address.

Can you check ip addr on the Pi-hole and see if there indeed is an IPv6 address, and also run ping6 2001:4860:4860::8844 to see if there is connectivity to the outside Internet.

My pihole is running on an Rpi3.

If I run ifconfig from CL I see an inet6 address.

If I run ping6 2001:4860:4860::8844 I get "Connect: network is unreachable"

It's probably worth pointing out that my ISP provided router does not allow me to set my own DNS.
So I change settings in android WiFi config and still no joy.

Upon looking at ifconfig again I think I have only a local ipv6 address?

eth0      Link encap:Ethernet  HWaddr b8:27:eb:a5:5c:dd
          inet addr:192.168.0.33  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::8ff9:8a62:efb3:36cb/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4799337 errors:0 dropped:48179 overruns:0 frame:0
          TX packets:3727176 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:861777876 (821.8 MiB)  TX bytes:1488046520 (1.3 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:673222 errors:0 dropped:0 overruns:0 frame:0
          TX packets:673222 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:44415254 (42.3 MiB)  TX bytes:44415254 (42.3 MiB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:10.8.0.1  P-t-P:10.8.0.1  Mask:255.255.255.0
          inet6 addr: fe80::2e2e:c4a0:cdb1:f6a9/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:10343 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14589 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:849856 (829.9 KiB)  TX bytes:16961604 (16.1 MiB)

Is everything working as should without the VPN ?
Might want to compare below two before and after the VPN is connected on the system thats dialing in:

ip -4 route show

ip -6 route show

Everything works ok with no VPN connection, but still see add on my android device.

No VPN connection:

pi@raspberrypi:~ $ ip -4 route show
default via 192.168.0.1 dev eth0  metric 202
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.33  metric 202
pi@raspberrypi:~ $ ip -6 route show
2a02:c7f:9202:fb00::/64 dev eth0  proto kernel  metric 202
fd36:feae:edf6::/64 dev eth0  proto kernel  metric 202
fe80::/64 dev eth0  proto kernel  metric 256
default via fe80::9221:6ff:fe7c:5079 dev eth0  metric 202

VPN connected

pi@raspberrypi:~ $ ip -4 route show
default via 192.168.0.1 dev eth0  metric 202
10.8.0.0/24 dev tun0  proto kernel  scope link  src 10.8.0.1
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.0.33  metric 202
pi@raspberrypi:~ $ ip -6 route show
2a02:c7f:9202:fb00::/64 dev eth0  proto kernel  metric 202
fd36:feae:edf6::/64 dev eth0  proto kernel  metric 202
fe80::/64 dev eth0  proto kernel  metric 256
fe80::/64 dev tun0  proto kernel  metric 256
default via fe80::9221:6ff:fe7c:5079 dev eth0  metric 202

It's worth noting that I still see adverts regardless of whether I'm connected to my home VPN.

We dont have a crystal ball !
Who is doing what and please explain a little bit better with more details ?
Do you mean you have your Pi-Hole system dial into a VPN and after, none of your home devices can do DNS lookups anymore ?
And stick to one issue at a time as I believe you're still not aware bout this bit:

Not really sure what this means?

I'll try to be clearer, if I wasn't.
I'm running a Raspberry pi 3.
I have pi-hole installed
On the same pi I run OpenVPN server installed via PiVPN. This allows me to access my home network externally.
When I setup PiVPN, I told it that my DNS server is

If I am connected to the VPN I see no adverts
If I am notconnected to VPN I see adverts

Specifically on android, I see adverts whether I set the DNS manually or via dhcp in advanced WiFi settings.

To be clear, I can now access the internet and DNS queries are resolved.

I ran pihole -d and reported the debug token as suggested by @DanSchaper
But unfortunately​he didn't give any feedback.

I also reported the

ip -4 route show

ip -6 route show

As you suggested and printed the results.

If anything isn't.clear let me know, just with a bit of respect.

Thanks all

Sorry for that.
I just cant make any sense of what you've posted.
Maybe someone else can.