Run cloudflared tunnel in my macbook to expose server online

Hello, I would like to use the cloudflares tunnel to expose a python server running on a local port so that external people can test the app from home without having to give my ip and open a port on my ISP box. I tested cloudflared access tcp --hostname tcp://localhost:1234 --url xxx.domain.tld but I got the error 2024-02-24T23:48:18Z ERR Error on Websocket listener error="failed to start forwarding server: listen tcp: address xxx.example.tld: missing port in address" Understand xxx.example.tld as an example but I do have a domain name connected to cloudflare. Thanks for your help
1 Reply
Erisa
Erisa4mo ago
You'd want cloudflared tunnel create mytunnel followed by cloudflared tunnel --url http://localhost:1234 --hostname xxx.domain.tld --name mytunnel the access tcp command is for a completely different use-case (accessing a previously tunneled tcp application locally)