m1k1o / neko

A self hosted virtual browser that runs in docker and uses WebRTC.
https://neko.m1k1o.net/
Apache License 2.0
7.51k stars 549 forks source link

Black Screen Issues while using private docker container behind a nodejs proxy server #401

Open atomiccoder45 opened 4 months ago

atomiccoder45 commented 4 months ago

Black Screen Issues while using private docker container behind a nodejs proxy server

m1k1o commented 4 months ago

Check out troubleshooting guide: https://neko.m1k1o.net/#/getting-started/troubleshooting

atomiccoder45 commented 4 months ago

Hi @m1k1o tried this solutions but it is not working,

I am following below way for my approach

Creating Docker containers without exposing them. Proxying with a Docker container hosting a Node.js proxy server. Both are in the same network, and proxying is done via TCP port. It often shows a black screen but sometimes works.

m1k1o commented 4 months ago

You must have your ports (UDP and/or TCP) available from outside. If you want "proxy for webrtc" then you need Turn servers. https://neko.m1k1o.net/#/getting-started/?id=using-turn-servers-instead-of-port-forwarding

atomiccoder45 commented 4 months ago

Hi,

I have used google stun server like below:

NEKO_ICE_SERVERS='[{"urls": ["stun:stun4.l.google.com:19302"]}]'

still it says peer connection state failed in logs and show it as a black screen

m1k1o commented 4 months ago

Stun server is only to discover your peer's IP. There is no data flow, ports still needs to be accessible. You need Turn servers. Either own or paid service.

atomiccoder45 commented 4 months ago

Hi,

I have tried couple of turn servers, but it sometimes suddenly peer gets disconnected and screen turns black

atomiccoder45 commented 4 months ago

When url reloads websocket connection of neko chrome gets disconnected

m1k1o commented 4 months ago

It should be reconnected. Try setting higher read and write timeout on your proxy. To at least 60sec.

atomiccoder45 commented 4 months ago

tried it still whenever it has a reload it appears to be a black screen

atomiccoder45 commented 4 months ago

@m1k1o Hi, we are having a big release, appreciate a quick support from you to solve this issue

m1k1o commented 4 months ago

If you would like to have priority support with immediate help tailored to your needs, please take a look at the sponsors dashboard:

https://github.com/sponsors/m1k1o?frequency=one-time

atomiccoder45 commented 4 months ago

Hi,

I have sponsored you, please check the dashboard, and please support us with immediate basis

m1k1o commented 4 months ago

Hi. Still didn't receive anything. Could you join the discord and write me DM or write me on the contact address that you received after you sponsored me. So that i can get directly in touch with you and resolve your issue immediately.

atomiccoder45 commented 4 months ago

Hi yes how can i join you on discord

m1k1o commented 4 months ago

There is join link in readme, you can find me in the room:

Chat on discord

atomiccoder45 commented 4 months ago

I have messaged you in the chat

atomiccoder45 commented 4 months ago

Hi @m1k1o, please dedicate some time of your time for a call, we can connect and you can help me to close this issue