m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
5.98k stars 449 forks source link

just hangs after login with neko:neko #173

Closed dragonballa closed 2 years ago

dragonballa commented 2 years ago

This is my docker-compose.yml

version: "3.4"
services:
  neko:
    image: "m1k1o/neko:firefox"
    restart: "unless-stopped"
    shm_size: "2gb"
    ports:
      - "8080:8080"
      - "52000-52100:52000-52100/udp"
    environment:
      NEKO_SCREEN: 1920x1080@30
      NEKO_PASSWORD: neko
      NEKO_PASSWORD_ADMIN: admin
      NEKO_EPR: 52000-52100
      NEKO_ICELITE: 1
      NEKO_IPFETCH: https://ifconfig.co/ip
      NEKO_DEBUG: 1

Everything goes smoothly. I navigate to the webpage, it shows me login, I input neko:neko

However the reconnecting blue modal shows up and it is stuck at this loading screen.

What could be the cause? Where can I view logs?

I see a bunch of WRN logs wonder if its relevant.

pingAllCandidates called with no candidate pairs. Connection is not possible yet. module=webrtc subsystem=ice

Failed to start manager: connecting canceled by caller module=webrtc subsystem=pc

Failed to start SCTP: DTLS not established module=webrtc subsystem=pc

undeclaredMediaProcessor failed to open SrtcpSession: the DTLS transport has not started yet module=webrtc subsystem=pc
m1k1o commented 2 years ago

It uses your external IP and sends that to the clients. Meaning, ports that you expose 52000-52100/udp needs to be avaliable from outside. Have you chcecked if your port forwarding is correct?

If you want to use n.eko locally, you needs to specify NEKO_NAT1TO1: <ip> to your local IP, that is reachable from the client and has correctly exposed all ports.

dragonballa commented 2 years ago

thanks, do you mean a port range of 52000 to 52100 ? so hundred ip ports?

m1k1o commented 2 years ago

Yes. But generally it means - how many concurrent sessions do you expect, that many ports you should have. So 10 colud maybe be enough for you. See docs: https://neko.m1k1o.net/#/getting-started/?id=why-so-many-ports