New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot bind listener socket #21
Comments
You are probably running two turn server instances on your system. Sent from my iPhone
|
@mom040267 no, I checked it with I investigated a bit, and I'm running the VM inside a NAT network and I suspect I can't open ports using the I configured relay address with the public IP address and listening IP address with the private one. Moreover I configured external IP address with both (public/private). |
If the program cannot open a socket on an address, it means that the May be, you are trying to open a public IP on the 'internal' system with Oleg On Wed, Sep 16, 2015 at 7:40 AM, Julio Carlos Barrera Juez <
|
@mom040267 as I said, the sockets are opened during a few seconds using |
I found the origin of the issue. It was a compilation failure. I compiled with Debian Squeezy and executed with Debian Jessie. It produced those bind errors. It was nothing related with NAT server or hairpinning. Thank you for the support. |
I know this issue is closed, but a comment from mom catched my eye: May be, you are trying to open a public IP on the 'internal' system with I am trying the same, I want to understand why it won't work? Do I have to deploy it on a machine with public IP ?? |
Nope, this was not the issue. If you want to listen in private IP address, you need to use this configuration. It says for Amazon EC2 users, but it works for any private/public IP address configuration. |
Cool, thank you I am already using the -X option from the command line. |
I am having the same problem but I installed coturn by "apt install coturn" (Version: 4.5.0.3-1build1). I installed in a VM with ubuntu 16.04 server 64bits. I execute this command at VM with IP 10.67.125.28 (ejabberd and coturn installed here), my clients can access this IP (jsxc/jsxc#583 (comment)):
|
I tried these commands bellow too, but print the same error:
|
I fixed the problem configuring two IPs in interfaces:
And enable turnserver (/etc/turnserver.conf):
|
But video call still having problem, /var/log/turn/turn_2017-07-20.log :
JSXC config:
|
Hello, guys.
xx.xx.xx.xx is the public IP address of the server. eth0 Link encap:Ethernet HWaddr 52:54:00:33:4C:3A lo Link encap:Local Loopback 10.163.5.60 is the private address of this server. |
I think you need to bind it to your local server and then do a port
forwarding from your static ip to local server. Or you should put it on the
machine which has the live ip.
…On Fri, Aug 11, 2017 at 10:30 AM, High Dev ***@***.***> wrote:
Hello, guys.
I've installed turnserver-4.5.0.6 on my server and executed "turnserver -L
xx.xx.xx.xx -a -f -r north.gov" on the terminal.
Then I got this error on the log:
1: Trying to bind fd 22 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Cannot bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478,
again...
bind: Cannot assign requested address
bind: Cannot assign requested address
1: Trying to bind fd 28 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Trying to bind fd 27 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Cannot bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478,
again...
1: Cannot bind DTLS/UDP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind DTLS/UDP listener socket to addr xx.xx.xx.xx:3478,
again...
bind: Cannot assign requested address
1: Trying to bind fd 12 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Cannot bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478,
again...
bind: Cannot assign requested address
1: Trying to bind fd 17 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Cannot bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478,
again...
bind: Cannot assign requested address
1: Trying to bind fd 22 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Cannot bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478,
again...
bind: Cannot assign requested address
bind: Cannot assign requested address
1: Trying to bind fd 28 to <xx.xx.xx.xx:3478>: errno=99
Cannot bind local socket to addr: Cannot assign requested address
1: Trying to bind fd 27 to <xx.xx.xx.xx:3478>: errno=99
1: Cannot bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478
Cannot bind local socket to addr: Cannot assign requested address
1: Trying to bind TLS/TCP listener socket to addr xx.xx.xx.xx:3478,
again...
1: Cannot bind DTLS/UDP listener socket to addr xx.xx.xx.xx:3478
1: Trying to bind DTLS/UDP listener socket to addr xx.xx.xx.xx:3478,
again...
xx.xx.xx.xx is the public IP address of the server.
So I executed 'ifconfig' to check the inet address.
But I can get like this.
eth0 Link encap:Ethernet HWaddr 52:54:00:33:4C:3A
inet addr:*10.163.5.60* Bcast:10.163.127.255 Mask:255.255.128.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:75376879 errors:0 dropped:0 overruns:0 frame:0
TX packets:55628433 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7322117114 (6.8 GiB) TX bytes:6418093666 (5.9 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:835 errors:0 dropped:0 overruns:0 frame:0
TX packets:835 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:63197 (61.7 KiB) TX bytes:63197 (61.7 KiB)
10.163.5.60 is the private address of this server.
The public address is correct. And I created the server from qcloud.com.
How can I fix this issue?
Thanks.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#21 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACYEOijqWIAec4E--c3cW2_Fcu9RV6Fuks5sW9_ngaJpZM4F-aXQ>
.
|
Thanks for your replying. |
Did you ever solve this? |
I'm also having the same issue. What to do for this? |
I fixed the problem configuring two IPs in interfaces: @diegobill How you fixed and where you kept that two IPs |
Hello did you fixed this?Facing the same problem. @highdev2016 |
Hello, did you fixed this problem?@RamyaAshika |
i dont wanna give you to much hope on this, but i guess it could help to give it an additional port range to communicate on: coturn.conf: uncommentmin-port=49152 |
Check that your process is not stuck
And check open ports and process
Stop or kill your stuck process and after it you can start your coturn.. |
#listening-device=eth0 |
@pathfinder2104, that's the point! I'm just removed --relay-ip='$$(detect-external-ip)' command field of docker-compose.yml and now it is working! Camera and calls of Synapse works well! Thank you very much! Here is why it's important:
By trying to configure Turn fastly, I tried different configurations, which was done by others, but I didn't knew how it will affect on functionality inside docker which in context of docker-compose configured to work in Bridge networking mode. So, in context of non host type of networking, probably you have not to use that parameter for external IP value. |
I'm using turnserver-4.4.5.4 in Debian 8 Jessie, compiled by myself with default options.
When I try to launch turnserver I get this error in the log (with the
-o
option):Or this error in the standard output (without the
-o
option):TCP or UDP 3478 port is not allocated at all and, in fact, the server runs for a few seconds and then process dies.
I found similar error with older versions and other distros here and tried the
--ne=2
option, but then the server dies in the first connection.The text was updated successfully, but these errors were encountered: