Connecting
bcdlbgm opened this issue · comments
When I set up sshx myself and run mproc, the top left corner always displays "Connecting".
could you share the log? i was able to make it working without any issue.
start.yaml
prettier-ignore
2 │ procs:
3 │ server:
4 │ shell: >-
5 │ cargo run --bin sshx-server --
6 │ --listen 0.0.0.0
7 │ --override-origin http://0.0.0.0:5173
8 │ --secret dev-secret
9 │ --redis-url redis://127.0.0.1:6379
10 │ client:
11 │ shell: >-
12 │ cargo run --bin sshx --
13 │ --server http://0.0.0.0:8051
14 │ web:
15 │ shell: npm run dev -- --host 0.0.0.0
16 │ stop: SIGKILL # TODO: Why is this necessary?
mprocs -c start.yaml
./sshx --server http://x.x.x.x:8051
are you running the redis ?
Looks good to me do you see any error message on browser console or network section.?
Why do you need to run sshx-server on 0.0.0.0 rather than local host? . the only thing i exposed is front end over 0.0.0.0 and rest are running on local host?.
./sshx-server --override-origin http://localhost:5173 --secret dev-secret --redis-url redis://localhost:6379
just use like this
Thanks @natarajan0007 -- for security reasons, I can't recommend you run anything bound to the unspecified IP address (0.0.0.0 or ::) in development.
And in your case, attempting to connect to 0.0.0.0 as a destination IP address is invalid
I restarted and followed the command you said, but still “Connectinging”
could you share the log again?
can you share the frontend log also?
i no`t see frontend log
The problem is solved. Some front-end APIs need to be used in a security context. You can use sshx normally by turning on https.