Giter VIP home page Giter VIP logo

Comments (13)

benwtrent avatar benwtrent commented on May 18, 2024

Also, I am using Debian Jessie as my OS and it is x86.

Another tidbit, I see the stun Bind requests being sent the machine requesting the Echo test but there is no success reply...It seems that the reply, even through it is an internal session is trying to go to the public IP address instead of the local one.

Meaning, the Binding Request originates from the internal IP but Chrome tries to respond to the public IP even though they are behind the same NAT...Interesting....

from janus-gateway.

benwtrent avatar benwtrent commented on May 18, 2024

Well, it works great if I turn off it being behind a NAT...Is there a way for it to communicate with machines behind the same NAT and to ones outside its NAT?

I am gonna start digging around. Let me know if you guys find anything first.

from janus-gateway.

lminiero avatar lminiero commented on May 18, 2024

Is the gateway deployed behind a NAT? If so, you need to either specify a public IP to be used in negotiations (assuming the same ports are going to be used locally and on the NAT) or configure the gateway to use a STUN server as well. Both things can be done via command line and configuration.

from janus-gateway.

lminiero avatar lminiero commented on May 18, 2024

The STUN solution is probably the way to go to cover users both within and outside the NAT.

from janus-gateway.

benwtrent avatar benwtrent commented on May 18, 2024

Yes, it is deployed behind a NAT and I have the issue only when I do use a STUN server and try to access from behind the same NAT. I will try a different STUN server than googles public one to see if that helps.

Here is my current config for nat

[nat]
;public_ip = 1.2.3.4
stun_server = stun.l.google.com
stun_port = 19302

from janus-gateway.

benwtrent avatar benwtrent commented on May 18, 2024

No dice, tried with stun.ekiga.net, stun.iptel.org, numb.viagenie.ca and still getting the same ICE failed error.

from janus-gateway.

lminiero avatar lminiero commented on May 18, 2024

Sorry, traveling now, will look into that as soon as I get back home.
Il 25/lug/2014 13:39 "Computician" [email protected] ha scritto:

No dice, tried with stun.ekiga.net, stun.iptel.org, numb.viagenie.ca and
still getting the same ICE failed error.


Reply to this email directly or view it on GitHub
#46 (comment)
.

from janus-gateway.

benwtrent avatar benwtrent commented on May 18, 2024

Safe travels! I will continue digging myself.

from janus-gateway.

lminiero avatar lminiero commented on May 18, 2024

The issue may be that, when specifying a STUN server, the public_ip variable is set, that in turn replaces the host addresses with its value, which is obviously wrong. It should only overwrite it when the public IP is specified as part of the configuration, and not when retrieved via STUN.

Can you try commenting this line:
https://github.com/meetecho/janus-gateway/blob/master/ice.c#L194
and see if that works for you?

from janus-gateway.

lminiero avatar lminiero commented on May 18, 2024

PS: And this one as well:
https://github.com/meetecho/janus-gateway/blob/master/ice.c#L187

from janus-gateway.

benwtrent avatar benwtrent commented on May 18, 2024

That worked for internal sessions! I have not tested yet with external IPs yet(meaning clients behind a different NAT.

from janus-gateway.

lminiero avatar lminiero commented on May 18, 2024

Good! If you configured a STUN server, it should work for external users as well, through the srflx candidates. Let me know if that fixes it and I'll push the fix as soon as I do the same for a couple of other bugs I'm working on.

from janus-gateway.

benwtrent avatar benwtrent commented on May 18, 2024

Yes, external still works with that change! Thank you very much

from janus-gateway.

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.