How to change tunnel location and can't access locally
Hi, I just installed coder via the CLI and have two problems.
1. It always defaults to "US East Pittsburgh", which gives me a high latency, as I am in Germany.
2. I can't access it via IP:PORT, but don't know why.
Yes the IP and port are correct and I am in the same network, but it just doesn't work.
32 Replies
<#1371064755615305828>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
And as said, accessing
http://192.168.178.170:3000/
, just doesn't return anything.
hell, you need to host it on your own domain to get rid of the Coder tunnel in Pittsburg
try.coder.app is in the US but it's only meant for testing purposes
But shouldn't I still be able to access it locally?
I just went with the quick start guide
Where it also shows it being accessed locally after the same steps I did
yeah but when you have the try.coder.app tunnel enabled it won't start one locally
Ah okay thanks, but could I also just disable tunnels entirely?
Also even with a custom URL and a CF Tunnel I still can't access it locally or remote
you can, but you don't want to
what I'm referring to as the 'Coder tunnel' is the try.coder.app proxy, and that is disabled by defining an access URL
could you share a bit more details? (screenshots, logs, etc)
Sure thing. Just to be sure I started with a fresh VM and installed nothing besides coder. Then added the domain entry to CF Tunnels. But even still, I cannot reach the site locally either



ip a
entry stayed the same
https://discord.com/channels/747933592273027093/1371064755615305828/1371065228191858799
Anything else you need?
Also tried changing the HTTP listener address to 0.0.0.0:3000
and 192.168.178.170:3000
, but same result
Now it's all default except the access url
Also no ufw or any other special stuff running
Just tried doing a curl 127.0.0.1:3000
from the VM itself and that returned something. So it's really just somethingh about me not being able to access it from any other device
I am lost. I just tried the exact same thing again:
coder server --access-url=https://code.pyenb.network/ --http-address=192.168.178.170:3000
and now it just works??
I will take that. Thanks for the help anyways
nvm. It's still not working via Domain. I can access it locally now, but the domain stays blank:
https://code.pyenb.network/
It sometimes works, but then throws a 404 in the next second
Could be DNS tho
imma seeProblems seems to persist. Healthchecks keep failing. If I refresh the websocket one, it keeps switching between 101 and 404

what's your config?
@Pyenb
ok I see what happen there, should use a coder.env to run it locally for consistent env var
I have a script like this:
I used to run it like this (now I run coder behind reverse proxy in container)
when you specify access_url I think you have to specify key/cert files as well ( correct me if im wrong), but run without tls enable is totally possible. You just drop tls_enable=false, and coder will ignore coder_http_address i think
then point your CF tunnel to http localhost:7778
works with coder in the past, I havent playing around with coder without tls enable for awhile so I'm not sure if it worked
without tls enable coder prone to break if CF decide to timeout
I suggest grab cert/key files and enable tls
if you don't know how to use reverse proxy/letencrypt/certbot then just use ssl cert/key generated by cloudflare (assuming you have your domain registered to cloudflare?):

Yeah, just was testing around. Ran it via systemd otherwise
That was the idea, as CF should do the automatic TLS stuff
okok, thanks
Not registered, but I use it for DNS
hey, sorry, I had replied but they didn't go through as I was on the train :-(
http-address
shouldn't need to be set i think, or 0.0.0.0:3000
should also do the trick
do you have both IPv4 and IPv6 configured?
(for reference, some related info in https://discord.com/channels/747933592273027093/1371729656453005342)No worries, only got my internet back up and running today anyways and had to reconfigure every device IP haha
ah ok, will try it again
Okok, thanks
meant it more for the other team members btw, this is a link to your other thread that i closed
though yeah i am wondering, do you have both IPv4 and IPv6 configured?
because if you do this issue could be related to switching back and forth from IPv4/IPv6 somehow
I made a separate thread because I tried using code-server instead of the full Coder workspaces. I'm still not quite sure if Coder is the right fit for my use case.
Right now, I just have a VM that I access using code-server plugin in VSC, and I use JetBrains Toolbox to remote into it via SSH and do all my coding "locally" (or via tailscale) on that VM.
That said, the features of Coder and the whole containerization approach are still appealing
ah yeah i didn't catch that
Should be, I never explicitly set up ipv6, but also didn't disable it
tbf it seems that you're having the same issue with both and that it's likely a networking issue
Yes, I know. Thats what I was trying to figure out
because I expose other services via CF tunnels or just via caddy and they run just fine
Because in this setup, there wasn’t much in the way — it was just:
Proxmox → VM → Docker → Coder → Cloudflare Tunnel → Web
So basically simple and straightforward. I will see again and report back. Thanks again for the help 👍
can you go to the page that 404s and see what it is?
so for example this first js file

Sure, just quickly gotta boot it up again. One sec
Coder or code-server rn?
anything that 404s but code-server seems more reproducible on your setup so go for that
Funny, I can't get code-server to throw any errors rn
Maybe it was just a DNS issue, even tough I cleared it in CF multiple times. Or it's something with my new Router and different setup
Lemme quickly spin up coder
Well, no 404s so far

lol
that's always how it goes
Yeah haha
I will watch it a bit how it behaves