Hi,
my ultimate goal is to run fly proxy 4010:4010
on my local dev laptop. This would allow me to connect via localhost:4010
to a REPL of my web app.
Unfortunately, I cannot get this to work. I am getting errors like Connection reset by peer
.
When I fly ssh console
into my machine, I can run netstat -tnlp
which gives:
-bash-5.2# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:4010 0.0.0.0:* LISTEN 322/app
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 322/app
tcp 0 0 fdaa:1:d67a:a7b:38:5a91:3536:2:22 :::* LISTEN 323/hallpass
Port 5000
is the http port of my app. To try something else, I did fly proxy 5000:5000
on my laptop and then ran curl http://localhost:5000
. This also gives me a Connection reset by peer
.
fly version
gives me
flyctl v0.2.72 linux/amd64 Commit: df7529f6da985a662853ffc7003f57ee3c9d8e42 BuildDate: 2024-06-18T23:04:13Z
I am on Arch Linux.
Any ideas how to further investigate this? Is my basic understanding of the fly proxy
command correct in the sense that I should be able to do a port forwarding to any port listening in my VM on 0.0.0.0
?
Thanks!
Best, Kilian