Giter Site home page Giter Site logo

Comments (3)

m1k1o avatar m1k1o commented on June 9, 2024

Hello. This is a known limitation, a new feature would be needed to be implemented to support this.

But for now, you should be able to solve it with custom turn server. You can deploy turn server in your LAN with your LAN ip address, and give it to neko. It will try to establish connection through your public IP, where it will fail because of nat hair-pinning issue, and it will fall back to your turn server.

In contrary, this server will not be working for your remote connections, but the direct communication would be.

from neko.

darktemplar242 avatar darktemplar242 commented on June 9, 2024

Pretty sure most of canada can't actually use n.eko because of this issue, i'm in the boat.

from neko.

m1k1o avatar m1k1o commented on June 9, 2024

That would not be optimal to exclude neko users in canada.

As mentioned above, using custom turn server it can be acheived. I will definitley include a fix for this issue in v3 rewrite.

Here is the full docker-compose.yaml with local coturn server:

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_ICESERVERS: |
        [{
          "urls": [
            "turn:192.168.1.60:3478"
          ],
          "username":"neko",
          "credential":"neko"
        },
        {
          "urls": [
            "stun:stun.nextcloud.com:3478"
          ]
        }]
  coturn:
    image: 'coturn/coturn:latest'
    network_mode: "host"
    command: |
      -n
      --realm=localhost
      --fingerprint
      --listening-ip=0.0.0.0
      --external-ip=192.168.1.60
      --listening-port=3478
      --min-port=49160
      --max-port=49200
      --log-file=stdout
      --user=neko:neko
      --lt-cred-mech

Please repalce 192.168.1.60 with your LAN IP address, and allow ports 49160-49200/udpand 3478/tcp in your LAN, if you use some kind of firewall. This should help you with the missing nat hairpinning.

from neko.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.