Cannot access website from the Internet

1. The problem I’m having:

My web server cannot be accesed from the Internet, only from the computer I am running the server on using localhost, although I have Port Forwarding and the firewall set up correctly.

2. Error messages and/or full log output:

No relevant logs.

3. Caddy version:

v2.8.4

4. How I installed and ran Caddy:

a. System environment:

Ubuntu 24.04 LTS amd64

b. Command:

sudo ./caddy_linux_amd64 run

c. Service/unit/compose file:

d. My complete Caddy config:

{
    	email vlad.robert.juganaru@gmail.com
	acme_ca https://acme.zerossl.com/v2/DV90
	admin off
}
fishyfish.go.ro {
	error /images* "I'm a teapot" 418
	error /caddy_linux_amd64 "Not found" 404
	error /caddy_linux_amd64_custom "Not found" 404
	error /Caddyfile "Not found" 404
	handle_errors {
		rewrite * /{http.error.status_code}.html
		file_server
	}
	file_server
}

5. Links to relevant resources:

Howdy @ArduFish123,

I was able to connect to your Caddy server on port 80, but the HTTPS port timed out.

~
➜ curl -kvL fishyfish.go.ro
* Host fishyfish.go.ro:80 was resolved.
* IPv6: (none)
* IPv4: 86.127.63.176
*   Trying 86.127.63.176:80...
* Connected to fishyfish.go.ro (86.127.63.176) port 80
> GET / HTTP/1.1
> Host: fishyfish.go.ro
> User-Agent: curl/8.9.1
> Accept: */*
>
* Request completely sent off
< HTTP/1.1 308 Permanent Redirect
< Connection: close
< Location: https://fishyfish.go.ro/
< Server: Caddy
< Date: Fri, 23 Aug 2024 00:21:42 GMT
< Content-Length: 0
<
* shutting down connection #0
* Clear auth, redirects to port from 80 to 443
* Issue another request to this URL: 'https://fishyfish.go.ro/'
* Host fishyfish.go.ro:443 was resolved.
* IPv6: (none)
* IPv4: 86.127.63.176
*   Trying 86.127.63.176:443...
* connect to 86.127.63.176 port 443 from 192.168.0.153 port 62544 failed: Operation timed out
* Failed to connect to fishyfish.go.ro port 443 after 75004 ms: Could not connect to server
* closing connection #1
curl: (28) Failed to connect to fishyfish.go.ro port 443 after 75004 ms: Could not connect to server

~ took 1m 15s 919ms
➜

I’d advise taking another look at your firewall; working HTTP implies your DNS is configured correctly and there aren’t any other transmission issues, but a timeout on port 443 implies that this port specifically is still blocked or improperly forwarded, either at the router or the individual host level.

1 Like

Thank you, the port forwarding was not set up on port 443.

1 Like

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