Open trentwiles opened 2 years ago
try neko_icelite: 0 ? that's what I atleast use
I tried, I'm still getting the error:
neko_1 | 7:37PM WRN Failed to start manager: connecting canceled by caller module=webrtc subsystem=pc
neko_1 | 7:37PM WRN Failed to start SCTP: DTLS not established module=webrtc subsystem=pc
neko_1 | 7:37PM WRN undeclaredMediaProcessor failed to open SrtcpSession: the DTLS transport has not started yet module=webrtc subsystem=pc
neko_1 | 7:37PM WRN undeclaredMediaProcessor failed to open SrtpSession: the DTLS transport has not started yet module=webrtc subsystem=pc
neko_1 | 7:37PM INF peer closed id=_vcMKk7n5MwQbWDKV8gDUpNPO90ivES6 module=webrtc
Enabling icelite
assumes, that your ports are reachable from outside. What should always be the case, that's why it is the prefered and default configuration. If you set it to 0
, then your configuration is more resillient to network connecting. E.G. you can have NAT in betwen but in that case you should use own TURN-servers, to have this flexibility or open ports on the client. Otherwise there is not much difference between them.
Have you gone trough the troubleshooting guide:
iptables
etc. are correctly set on your server.NEKO_NAT1TO1
.I'm having the same issue, locally, I can connect to it no problem, but remotely, no luck. I'm running it behind a reverse proxy with nginx
Setting NEKO_NAT1TO1 solved the problem for me.
You need to add your IP address that you will use to connect to Like that:
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: 1024×576@30
NEKO_PASSWORD: neko
NEKO_PASSWORD_ADMIN: admin
NEKO_EPR: 52000-52100
NEKO_ICELITE: 1
NEKO_NAT1TO1: 192.168.1.106
@vgdh you won't also happen to be using Nginx for reverse proxy? My setup works locally however whenever someone attempts to access remotely I see Disconnected peer failed. @stautonico were you able to sort this? Did confirm I have the NEKO_NAT1TO1: set to Private IP of host running Neko.
I haven't touched this in a long time. I couldn't get it to work through an Nginx reverse proxy, since the proxy doesn't pass websockets. I couldn't get websockets working, but it might be possible, but I don't know enough about nginx. Ik this isn't the solution for everyone, but to get it working, I just added my friends to my home wireguard VPN, so they can connect "locally" over the vpn.
@vgdh you won't also happen to be using Nginx for reverse proxy? My setup works locally however whenever someone attempts to access remotely I see Disconnected peer failed.
No I didn't use nginx. Just simple access through my home local network
@Healzangels
Did confirm I have the NEKO_NAT1TO1: set to Private IP of host running Neko.
NEKO_NAT1TO1
needs to be IP that you clients can reach. If you set it to private and your clients cannot reach that, then they cannot connect. It needs to be public IP with ports forwarded correctly.
Thanks for the follow up! Is this still the case using Cloudflare tunnel/Reverse proxy?
I have got to a point where locally everything works great. Remotely I can connect to my neko reverse proxied site. neko.example.com and enter my login credentials. Entering the wrong creditable are denied, correct get the green circle which ends up presenting the Disconnected peer failed.
Within the console the error is presented as: WebRTC: ICE Failed, add a TURN server and see about:webtrc for more details.
Additional details: Running in Docker on Bridge Network.
I've tried entering my Public IP address for NEKO_NAT1TO1 plus opening the WebUI TCP port on my local firewall with pointing to my local Unraid ip + Webui port
Is this still the case using Cloudflare tunnel/Reverse proxy?
UI and WebRTC are separated. You can put UI behind reverse proxy, thorugh tunnel, anywhere. It's just HTTP(s).
WebRTC: ICE Failed, add a TURN server and see about:webtrc for more details.
This means that neko does not have connectivity to the server. There is troubleshooting guide.
I've tried entering my Public IP address for NEKO_NAT1TO1 plus opening the WebUI TCP port on my local firewall with pointing to my local Unraid ip + Webui port
Try opening either EPR range, TCP andd/or UDP mux ports, depending on what you use.
For WebRTC there is either NEKO_EPR=56000-56100
where 56000-56100
is the range for UDP ports. Every client is allocated one port. Alternatively, NEKO_TCPMUX=8081
and/or NEKO_UDPMUX=8082
where you need only those two ports to be reachable from clients. See more info in docs.
Please note, WebRTC traffic is not HTTP traffic so it cannot be but behind reverse proxy. But it can be realyed using TURN if you don't want to expose those ports. But that means, you need to have somewhere TURN server.
Thanks for the links and the additional information! Was able to get everything working with making changes to open ports + TCMUX/UDP Ports.
NEKO_NAT1TO1: 192.168.1.106
This perfectly solved the error. Incase if for some reason this doesn't work, replace the IP by 127.0.0.1
and it should work for sure. Here is a snippet for reference
environment:
NEKO_SCREEN: "1920x1080@60"
NEKO_PASSWORD: ultiweb
NEKO_PASSWORD_ADMIN: ULTIweb
NEKO_EPR: 45800-45900
NEKO_FILE_TRANSFER_ENABLED: "true"
NEKO_ICELITE: 1
NEKO_DEBUG: 1
NEKO_NAT1TO1: 127.0.0.1
(note, I've read over https://github.com/m1k1o/neko/issues/61 but haven't seemed to be able to fix the issue)
I'm running this on my PC (Ubuntu impish) to test it out before I put it on a VPS. I tried to sign into the control panel at localhost:8080 and I got the error "Disconnected peer failed". I'm running the default docker-compose file:
My errors are as follows: