screego / server

screen sharing for developers https://screego.net/
https://app.screego.net
GNU General Public License v3.0
7.62k stars 551 forks source link

screego on cloudflare tunnels? #167

Closed ashishjullia closed 1 year ago

ashishjullia commented 1 year ago

I'm trying to run on cloudflare tunnels but for some reason unable to share the screen.

The app is up and running but the screen share part does nothing, is there a special setting required?

I'm using the follow docker-compose.yml:

version: "3.7"
services:
  screego:
    image: ghcr.io/screego/server:1.10.0
    ports:
      - 5050:5050
      - 3478:3478
      - 50000-50200:50000-50200/udp
    environment:
      SCREEGO_EXTERNAL_IP: "dns:screego.mydomainname.com@1.1.1.1:53"
      SCREEGO_TURN_PORT_RANGE: "50200:50400"
      SCREEGO_CORS_ALLOWED_ORIGINS: "https://screego.mydomainname.com"
      SCREEGO_AUTH_MODE: none
      SCREEGO_TRUST_PROXY_HEADERS: "false"
  cf-tunnel:
    image: cloudflare/cloudflared
    restart: unless-stopped
    command: tunnel run
    environment:
      - TUNNEL_TOKEN=<TOKEN>

I'm able to get the web app up and running but the screen sharing part is not working.

jmattheis commented 1 year ago

Your portrange doesn't match:

SCREEGO_TURN_PORT_RANGE: "50200:50400"
  ports:
      - 50000-50200:50000-50200/udp

If this doesn't fix your problem, then please post the log of screego/server with enabled debug log: SCREEGO_LOG_LEVEL: debug and also post errors inside the browser console. When you are trying to share the screen.

ashishjullia commented 1 year ago

Ok, so I tried again after updating the docker-compose.yml with the suggestions you provided.

Now the logs are:

Details

``` ⠿ Network screego_default Created 0.2s ⠿ Container screego-cf-tunnel-1 Created 0.7s ⠿ Container screego-screego-1 Created 0.7s Attaching to screego-cf-tunnel-1, screego-screego-1 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Starting tunnel tunnelID=2e20551e-3ab1-4355-9c8e-31f210e41a83 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Version 2023.2.1 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF GOOS: linux, GOVersion: go1.19.5, GoArch: arm64 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Settings: map[no-autoupdate:true] screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Environmental variables map[TUNNEL_TOKEN:*****] screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Generated Connector ID: 65602aa2-9e18-4997-99f0-47648b4b3c94 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Will be fetching remotely managed configuration from Cloudflare API. Defaulting to protocol: quic screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Initial protocol quic screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF ICMP proxy will use 192.168.32.2 as source for IPv4 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF ICMP proxy will use :: as source for IPv6 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Starting metrics server on 127.0.0.1:46439/metrics screego-cf-tunnel-1 | 2023/08/29 14:40:25 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/lucas-clemente/quic-go/wiki/UDP-Receive-Buffer-Size for details. screego-cf-tunnel-1 | 2023-08-29T14:40:25Z WRN Your version 2023.2.1 is outdated. We recommend upgrading it to 2023.8.1 screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Connection 4c1176e6-38be-45e6-ba66-4aec851181f6 registered with protocol: quic connIndex=0 ip=198.41.192.27 location=YYZ screego-cf-tunnel-1 | 2023-08-29T14:40:25Z INF Connection 4ce91fea-370e-4b08-b3df-dae2808bed1a registered with protocol: quic connIndex=1 ip=198.41.200.53 location=ORD screego-cf-tunnel-1 | 2023-08-29T14:40:26Z INF Connection a7c77af2-bd0e-40e3-85bd-808a857e0f94 registered with protocol: quic connIndex=2 ip=198.41.200.63 location=ORD screego-cf-tunnel-1 | 2023-08-29T14:40:27Z INF Updated to new configuration config="{\"ingress\":[{\"hostname\":\"screego.ashishjullia.com\",\"originRequest\":{},\"service\":\"http://screego-screego-1:5050\"},{\"service\":\"http_status:404\"}],\"warp-routing\":{\"enabled\":false}}" version=2 screego-cf-tunnel-1 | 2023-08-29T14:40:27Z INF Connection c8867375-4300-476a-8433-83e350d3760e registered with protocol: quic connIndex=3 ip=198.41.192.77 location=YYZ screego-screego-1 | 2023-08-29T14:40:38Z DBG Logger initialized screego-screego-1 | 2023-08-29T14:40:38Z INF SCREEGO_SECRET unset, user logins will be invalidated on restart screego-screego-1 | 2023-08-29T14:40:38Z INF DNS External IP dns=1.1.1.1:53 domain=screego.ashishjullia.com v4=172.64.80.1 v6=2606:4700:130:436c:6f75:6466:6c61:7265 screego-screego-1 | 2023-08-29T14:40:38Z INF Users file not specified screego-screego-1 | 2023-08-29T14:40:38Z DBG Using Port Range max=50400 min=50200 screego-screego-1 | 2023-08-29T14:40:38Z INF Start TURN/STUN addr=:3478 screego-screego-1 | 2023-08-29T14:40:38Z INF Start HTTP addr=:5050 screego-screego-1 | 2023-08-29T14:40:39Z DBG HTTP duration="137.59µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:40:39Z DBG HTTP duration=2.834465ms host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/static/js/main.82446e73.js size=558144 status=200 screego-screego-1 | 2023-08-29T14:40:39Z DBG HTTP duration="145.313µs" host=screego.ashishjullia.com ip=192.168.32.2:45686 path=/static/css/main.99fa32a9.css size=73 status=200 screego-screego-1 | 2023-08-29T14:40:40Z DBG HTTP duration="119.517µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/config size=103 status=200 screego-screego-1 | 2023-08-29T14:40:41Z DBG WebSocket New Connection id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:40:41Z DBG HTTP duration="578.511µs" host=screego.ashishjullia.com ip=192.168.32.2:45688 path=/stream size=0 status=0 screego-screego-1 | 2023-08-29T14:40:41Z DBG WebSocket Receive event=*ws.Create id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:40:41Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:40:44Z DBG HTTP duration=10.606775ms host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/static/js/main.82446e73.js.map size=2223951 status=200 screego-screego-1 | 2023-08-29T14:40:44Z DBG HTTP duration="70.462µs" host=screego.ashishjullia.com ip=192.168.32.2:45686 path=/static/css/main.99fa32a9.css.map size=197 status=200 screego-screego-1 | 2023-08-29T14:41:02Z DBG HTTP duration="17.352µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:41:07Z DBG HTTP duration="23.185µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:41:07Z DBG HTTP duration="48.851µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/config size=103 status=200 screego-screego-1 | 2023-08-29T14:41:08Z DBG WebSocket New Connection id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:08Z DBG HTTP duration="416.347µs" host=screego.ashishjullia.com ip=192.168.32.2:37654 path=/stream size=0 status=0 screego-screego-1 | 2023-08-29T14:41:08Z DBG WebSocket Receive event=*ws.Join id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:08Z DBG WebSocket Send event=room id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:08Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:16Z DBG HTTP duration="98.536µs" host=screego.ashishjullia.com ip=192.168.32.2:45686 path=/static/css/main.99fa32a9.css.map size=197 status=200 screego-screego-1 | 2023-08-29T14:41:16Z DBG HTTP duration=139.861545ms host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/static/js/main.82446e73.js.map size=2223951 status=200 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Receive event=*ws.StartShare id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=clientsession id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=hostsession id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=room id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Receive event=*ws.HostOffer id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Receive event=*ws.HostICE id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=hostoffer id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=hostice id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Receive event=*ws.ClientAnswer id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=clientanswer id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Receive event=*ws.ClientICE id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:19Z DBG WebSocket Send event=clientice id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:27Z DBG WebSocket Receive event=*ws.StopShare id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:27Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:27Z DBG WebSocket Send event=endshare id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:27Z DBG WebSocket Send event=room id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Receive event=*ws.StartShare id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=clientsession id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=hostsession id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=room id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Receive event=*ws.HostOffer id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Receive event=*ws.HostICE id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=hostoffer id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=hostice id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Receive event=*ws.ClientAnswer id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Receive event=*ws.ClientICE id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=clientanswer id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:30Z DBG WebSocket Send event=clientice id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:36Z DBG WebSocket Receive event=*ws.StopShare id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:36Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:36Z DBG WebSocket Send event=endshare id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:36Z DBG WebSocket Send event=room id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Receive event=*ws.StartShare id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=clientsession id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=hostsession id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=room id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=room id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Receive event=*ws.HostOffer id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Receive event=*ws.HostICE id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=hostoffer id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=hostice id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Receive event=*ws.ClientAnswer id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Receive event=*ws.ClientICE id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=clientanswer id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:39Z DBG WebSocket Send event=clientice id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:44Z DBG HTTP duration="61.463µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket Close code=1001 id=cjn06q9mmnos73c8014g ip=192.168.32.2 reason= screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket Send event=endshare id=cjn0711mmnos73c80150 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket Done id=cjn06q9mmnos73c8014g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket Close code=1000 id=cjn0711mmnos73c80150 ip=192.168.32.2 reason="Owner Left" screego-screego-1 | 2023-08-29T14:41:44Z DBG HTTP duration="66.907µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/static/css/main.99fa32a9.css.map size=197 status=200 screego-screego-1 | 2023-08-29T14:41:44Z DBG HTTP duration=5.336155ms host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/static/js/main.82446e73.js.map size=2223951 status=200 screego-screego-1 | 2023-08-29T14:41:44Z DBG HTTP duration="34.999µs" host=screego.ashishjullia.com ip=192.168.32.2:45686 path=/config size=103 status=200 screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket New Connection id=cjn07a1mmnos73c80170 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:44Z DBG HTTP duration="570.141µs" host=screego.ashishjullia.com ip=192.168.32.2:57832 path=/stream size=0 status=0 screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket Receive event=*ws.Join id=cjn07a1mmnos73c80170 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:44Z DBG WebSocket Close code=1000 id=cjn07a1mmnos73c80170 ip=192.168.32.2 reason="room with id prior-lime-gayal does not exist" screego-screego-1 | 2023-08-29T14:41:51Z DBG HTTP duration="17.056µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:41:52Z DBG HTTP duration=4.086115ms host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/static/js/main.82446e73.js.map size=2223951 status=200 screego-screego-1 | 2023-08-29T14:41:52Z DBG HTTP duration="107.202µs" host=screego.ashishjullia.com ip=192.168.32.2:45686 path=/static/css/main.99fa32a9.css.map size=197 status=200 screego-screego-1 | 2023-08-29T14:41:52Z DBG HTTP duration="35.592µs" host=screego.ashishjullia.com ip=192.168.32.2:45686 path=/config size=103 status=200 screego-screego-1 | 2023-08-29T14:41:56Z DBG WebSocket New Connection id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:56Z DBG HTTP duration="519.623µs" host=screego.ashishjullia.com ip=192.168.32.2:32858 path=/stream size=0 status=0 screego-screego-1 | 2023-08-29T14:41:56Z DBG WebSocket Receive event=*ws.Create id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:56Z DBG WebSocket Send event=room id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:41:59Z DBG HTTP duration="16.426µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:42:07Z DBG HTTP duration="20.389µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/ size=905 status=200 screego-screego-1 | 2023-08-29T14:42:08Z DBG HTTP duration="34.036µs" host=screego.ashishjullia.com ip=192.168.32.2:45674 path=/config size=103 status=200 screego-screego-1 | 2023-08-29T14:42:09Z DBG WebSocket New Connection id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:09Z DBG HTTP duration="501.846µs" host=screego.ashishjullia.com ip=192.168.32.2:45772 path=/stream size=0 status=0 screego-screego-1 | 2023-08-29T14:42:09Z DBG WebSocket Receive event=*ws.Join id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:09Z DBG WebSocket Send event=room id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:09Z DBG WebSocket Send event=room id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Receive event=*ws.StartShare id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=clientsession id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=hostsession id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=room id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=room id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Receive event=*ws.HostOffer id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Receive event=*ws.HostICE id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=hostoffer id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=hostice id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Receive event=*ws.ClientAnswer id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Receive event=*ws.ClientICE id=cjn07g9mmnos73c80180 ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=clientanswer id=cjn07d1mmnos73c8017g ip=192.168.32.2 screego-screego-1 | 2023-08-29T14:42:14Z DBG WebSocket Send event=clientice id=cjn07d1mmnos73c8017g ip=192.168.32.2 ```

And no errors in network or console on browser's side: image

image

Am I missing something again?

Also if you want to check it is currently running here: https://screego.ashishjullia.com/

jmattheis commented 1 year ago

Looks like port 3478 isn't correctly proxied

$ dig screego.ashishjullia.com +short
172.67.199.112
104.21.76.188
$ nc -vzw 1 172.64.80.1 3478
172.64.80.1 3478 (stun): Connection timed out
$ nc -vzw 1 104.21.76.188 3478
104.21.76.188 3478 (stun): Connection timed out
$ nc -vzw 1 172.64.80.1 80
172.64.80.1 80 (http) open
ashishjullia commented 1 year ago

Oh, is there a way to route this (proxy) via my current setup of routing through cf tunnel?

version: "3.7"
services:
  screego:
    image: ghcr.io/screego/server:1.10.0
    ports:
      - 5050:5050
      - 3478:3478
      - 50200-50400:50200-50400/udp
    environment:
      SCREEGO_EXTERNAL_IP: "dns:screego.ashishjullia.com@1.1.1.1:53"
      SCREEGO_TURN_PORT_RANGE: "50200:50400"
      SCREEGO_CORS_ALLOWED_ORIGINS: "https://screego.ashishjullia.com"
      SCREEGO_AUTH_MODE: "none"
      SCREEGO_TRUST_PROXY_HEADERS: "false"
      SCREEGO_LOG_LEVEL: "debug"
  cf-tunnel:
    image: cloudflare/cloudflared
    restart: unless-stopped
    command: tunnel run
    environment:
      - TUNNEL_TOKEN=

Also, fyr, this is what I'm setting on cf's tunnel side:

image

jmattheis commented 1 year ago

Besides the HTTP service you also have to proxy the turn/stun port 3478 to the screego container. I don't use cloudflare, so I cannot help you there with detailed instructions. The port range 50200-50400 also has to be proxied.

ashishjullia commented 1 year ago

Yup, I'm trying to figure that about not sure if that's possible with cf tunnels or not but thanks a lot for the information and of course this awesome tool.

If I was able to solve this, I'll provide an update here.

jmattheis commented 1 year ago

Oke, I'll close this ticket for now, if you receive a different error on the screego side feel free to reopen.

Jim-Young commented 5 days ago

Just for someone wants to make screego work with cloudflare, here is what I did.

You still have to do the port forwarding for tcp/udp 3478 on your firewall/router as cloudflare only tunnel 1 port at a time for the subdomain. No need to worry 50000-50200:50000-50200/udp.

$ dig screego.ashishjullia.com +short 172.67.199.112 104.21.76.188

These two IPs are cloudflare's IP, your SCREEGO_EXTERNAL_IP has to set to your router's public IP not cloudflare's. If you don't have a static IP, then use ddns.

The important one is set SCREEGO_AUTH_MODE to none or add authentication to enable TURN because STUN won't work if you STUN server is behind NAT

Set up cloudflare as @ashishjullia did(see the screenshot there) Run screego through binary/docker