coder + cloudflare tunnel (Linux debian)

As the title suggests, I've been trying to get this to work with no look. If anyone has any advice, I would greatly appreciate it. Issue: I can't seem to open coder in localhost:3000 if I could, I think the tunnel would work, since I'm pointing it to localhost:3000 🤔
30 Replies
Codercord
Codercord8mo ago
<#1211011223618064484>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
ÙwÚ
ÙwÚ8mo ago
Hey, I might have a similar setup, did you succeed in doing it? I maybe able to help
I am not bald
I am not bald8mo ago
Sorry m8 didn't notice your message Sadly not been rather frustrating tbh What type of setup do you have? 🤔
ÙwÚ
ÙwÚ8mo ago
Usually when you run coder server, the log will show you
http://localhost:port
http://localhost:port
, what your log looks like? I run coder server in tmux, usually with a script to assign env var, but you dont really need to. Is this the first time you use cloudflare tunnel?
I am not bald
I am not bald8mo ago
Yup it shows http://localhost:3000 I can't access it tho through a browser which one thought Unless I use the coder.com proxy tunnel I assume you assign the var that is the 'CODER_ACCESS_URL'
ÙwÚ
ÙwÚ8mo ago
You cant access with local browser? I dont know how you run it tho
I am not bald
I am not bald8mo ago
Hmmm When I run other services that are running local then the tunnel works 🤔
ÙwÚ
ÙwÚ8mo ago
So http://127.0.0.1:3000 isnt working too?
I am not bald
I am not bald8mo ago
I only tried localhost:3000 but that should point to that tho 🤔
ÙwÚ
ÙwÚ8mo ago
Likely a firewall issue if you cant access it with local browser
I am not bald
I am not bald8mo ago
Ahhhh You might be onto something there 🤔🤔🤔🤔🤔 With what you said there then, it should be accessible? 🤔 Cus I would have thought so The coder tunnel should just hook onto it
ÙwÚ
ÙwÚ8mo ago
That i dont know how they do it, but if you followed the installation process, it should work, else you gotta check with your system Possible that coder run something that trigger firewall or smth
I am not bald
I am not bald8mo ago
🤔
ÙwÚ
ÙwÚ8mo ago
Their proxy is only recommended for debugging I think
I am not bald
I am not bald8mo ago
Yea
ÙwÚ
ÙwÚ8mo ago
You shouldn't rely on it
I am not bald
I am not bald8mo ago
I wouldn't trust Currently setting up a home server Then use the cloudflare tunnel to protect it etc I just find it weird 🤔 I use docker For a example I can just get phpmyadmin in docker Run in
ÙwÚ
ÙwÚ8mo ago
Oh did you run coder in docker?
I am not bald
I am not bald8mo ago
Yea 🤔 Omg
ÙwÚ
ÙwÚ8mo ago
Ye Gotta expose port
I am not bald
I am not bald8mo ago
🤦‍♂️
ÙwÚ
ÙwÚ8mo ago
I usually use docker compose for this stuff Because it easier to expose ports
I am not bald
I am not bald8mo ago
I will apologise, I didn't mention I used docker 🤦‍♂️ Thought I did... rip But I will look into the docker compose Wish the coder doc mentioned it cus plonkers like me won't look like a tit 🤣
ÙwÚ
ÙwÚ8mo ago
No i think it better to run coder locally
I am not bald
I am not bald8mo ago
Do you think so? 🤔
ÙwÚ
ÙwÚ8mo ago
Because if you run coder in docker Later when you create env to code, it will be something like container inside container I cant remember what it's called tho, but lots of headache to deal with
I am not bald
I am not bald8mo ago
Hmmm 🤔 Well with what you have said I think I'll do loclly Thanks for your help man You've been a gem 👍 Can give you some money to buy a beer 😏👍
ÙwÚ
ÙwÚ8mo ago
Best to run with systemd, but I already run it with tmux and too lazy to reconfig it 🤣
Atif
Atif8mo ago
Later when you create env to code, it will be something like container inside container I cant remember what it's called tho, but lots of headache to deal with
This is not correct. We mount the host docker unix socket to the coder container so it can create workspace containers on the host So running Coder as a systemd service or inside a container will not have any effect on your docker workspaces.
I am not bald
I am not bald8mo ago
Thanks for that info 👍
Want results from more Discord servers?
Add your server