Giter Site home page Giter Site logo

Packet unhandled about turn HOT 4 CLOSED

pion avatar pion commented on August 20, 2024
Packet unhandled

from turn.

Comments (4)

iMitaka avatar iMitaka commented on August 20, 2024

Yesterday when i test got the same problem in this case:

I host the TURN server on my MacBook with this configuration:
$ export USERS='user=password'
$ export REALM=192.168.0.101 <- this is my local IP address from my router (tp-link)
$ export UDP_PORT=3500

In router setting i open a port ( ex MY_REAL_IP:9090 ) and forward in to 192.168.0.101:3500 to can connect remotely to TURN server.

My application use WebRTC for calling and i host it like the STUN server with local webpack server and forwarding from router.

The problem comes when i test using my phone on 4G mobile internet and my MacBook behind router wireless connection. When i make a offer from my phone to my laptop everything works fine, but when i send offer from laptop to phone the server start logging "Packet unhandled in relay src 192.168.0.101 {SOME_PORT}"

For me the problem is because the TURN server is hosted on machine behind router connection. And when the phone is host is using a Static IP that can be reached from everywhere, but laptop send a offer from local 192.168.0.101 and the mobile can not reach local IP address.

My question is, are the problem will solve when i host TURN server on the machine that use directly Static IP ?
Because now the problem come only when machine in local network (my laptop in home wifi network) send offer to make peerConnection with machine with static ip (my phone 4g), but when machine with static ip (my phone 4g) send offer to make peerConnection with matching in local network (my laptop in home wifi network) this WORKS fine!

from turn.

rostopira avatar rostopira commented on August 20, 2024

I've got same error on Alibaba ECS. How could I investigate cause of issue? It works fine as STUN

from turn.

gmbad avatar gmbad commented on August 20, 2024

Hello,

Same problem here. "Packet unhandled in relay src ".

Any ideas?

Tks

from turn.

Sean-Der avatar Sean-Der commented on August 20, 2024

Sorry for the delay everyone!

This message can happen if you a peer without an Allocation/ChannelBind is attempting to use the TURN server's relay. This should be expected if you are attempting to contact the TURN server from behind a NAT but didn't tell the other side your public IP.

I am happy to help if you can describe your setup/how you are using the TURN server! I am also available on Slack and happy to help anytime!

thanks for using Pion

from turn.

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.