I’m trying to use cloudflare to be able to access my phone’s web server from places where there is no IPv6 access. I have an IPv6 address accessible from outside. Apparently cloudflare does this automatically. But 522 Host error happens.
I have added the AAAA record to point to the IPv6 address that the
ip addr's wlan1 interface gives. There is another IPv6 address in the same subnet that is accessible from the same network locally, but not outside. There are like way more than dozen interfaces showing up, something like rmnet_data0 to data9 and what not. When I try to use freedns curl script to update the ipv6 on their service, it sets me up with that wrong IPv6 address for example, but I guess this detail is besides the point.
What I have read the info here what 522 means I guess it’s most likely that my ISP is blocking Cloudflare, but I would want to rule out other possibilities first before I contact my ISP.
So on my phone there is no root access, So I’m trying to host on the port 8080. I have tried with nginx on termux and simple http.server module of python. I can access the webserver with http://[ipv6]:8080 this kind of URL from outside the network.
For troubleshooting the
traceroute -6 <mydomain> goes after 2606:4700:3036::6815:1ef1 which is a cloudflare’s ip. Same if
ping <mydomain> or
ping -6 <mydomain> it pings the domain but it has that same cloudflare ipv6 address in parenthesis. Sometimes when I traceroute it without -6 flag it goes for the cloudflare’s IPv4 address 126.96.36.199 or 188.8.131.52. Since my phone is not rooted the tools like
netstat -tapen or
iptstate won’t work I guess.
netstat with those flags gives
no support for 'AF INET (tcp)' on this system. I have tried to check my phone that I don’t have any firewalls. I have tried disabling netguard and disabling private dns. I tried using the cloudflare’s private dns on phone even but no.
Is there a way to test if Cloudflare IP or port 8080(?) is blocked for incoming traffic at ISP’s? Should I try some other big ports, could that make a difference? I have tried 8000. Though Cloudflare supports only limited number of ports anyway. The ISP is elisa saunalahti and its 4g mobile internet connection is my connection.