InfluxDB/Grafana can't connect to internet

I can’t get grafana or influxdb to connect to the internet. In InfluxDB, it says this:


in Grafana, if I try to click on the plugin button,
it says this:

I have duckdns set up, so why is this occurring?