Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Access Server at https://localhost:5173 After Running make dev #3

Open
ulen2000 opened this issue Aug 14, 2024 · 3 comments

Comments

@ulen2000
Copy link

Description:
After running the command make dev, the server should be accessible at https://localhost:5173. However, when attempting to access this URL, the following message is displayed: "This site can’t be reached."

Additional Information:

  • The command make dev completes successfully, as shown in the attached screenshot.
    image

  • Here is a snippet of the terminal output after running make dev:

✔ Container dash-origin                         Created                                                                      0.1s
✔ Container cockpit-server                      Created                                                                      0.1s
✔ Container public-moq-vs-dash-install-certs-1  Created                                                                      0.1s
✔ Container relay                               Created                                                                      0.1s
✔ Container demo                                Created                                                                      3.7s
Attaching to cockpit-server, dash-origin, demo, install-certs-1, relay
install-certs-1  | go: downloading github.com/kixelated/mkcert v1.4.4-days
install-certs-1  | go: downloading golang.org/x/net v0.0.0-20220421235706-1d1ef9303861
install-certs-1  | go: downloading software.sslmate.com/src/go-pkcs12 v0.2.0
cockpit-server   | Cockpit WebSocket server listening on 8000
install-certs-1  | go: downloading golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29
install-certs-1  | go: downloading golang.org/x/text v0.3.7
dash-origin      | Finished parsing cmd line:
dash-origin      | data_root:            /app/data
dash-origin      | server_port_ingest:   8079
dash-origin      | server_port_delivery: 8080
dash-origin      | server_proto:         http
dash-origin      | Listening for ingest on port:   8079
dash-origin      | Listening for delivery on port: 8080
install-certs-1  | The local CA is already installed in the system trust store! 👍
install-certs-1  |
install-certs-1 exited with code 0
relay            | Running in development mode
demo             |
demo             | > [email protected] dev
demo             | > vite
demo             |
demo             |
demo             |   VITE v5.4.0  ready in 168 ms
demo             |
demo             |   ➜  Local:   http://localhost:5173/
demo             |   ➜  Network: http://172.18.0.5:5173/
  • I have confirmed that there are no firewall issues blocking the connection.
  • The ports are correctly being used as indicated by the netstat command output:
netstat -ntlp
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:4443            0.0.0.0:*               LISTEN      -
tcp        0      0 10.255.255.254:53       0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:5173            0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:8000            0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:8079            0.0.0.0:*               LISTEN      -
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      -
tcp6       0      0 :::4443                 :::*                    LISTEN      -
tcp6       0      0 :::5173                 :::*                    LISTEN      -
tcp6       0      0 :::8000                 :::*                    LISTEN      -
tcp6       0      0 :::8079                 :::*                    LISTEN      -
tcp6       0      0 :::8080                 :::*                    LISTEN      -
@DenizUgur
Copy link
Member

DenizUgur commented Aug 14, 2024

Apperantly, HTTPS was commented out. Could you try uncommenting and trying again?

// Uncomment the following lines to configure the dev server and the preview server to use HTTPS

@zafergurel
Copy link
Member

It also works with http and can be accessed at http://localhost:5173.

@ulen2000
Copy link
Author

image

Yes, I uncommented it, but https://localhost:5173/ still shows 'ERR_CONNECTION_TIMED_OUT'.

Actually, before I uncommented, I also tried http://localhost:5173/, but I got the same result...

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants