Closed tmyngu11 closed 1 year ago
Can you provide details of the docker command. Docker creates its own sub-network and you may need to use dockers internal ip address. Also your OS because the way docker does its internal network differs on each machine
@QuantumEntangledAndy thanks for the quick reply!
here is my docker compose:
---
version: "2"
services:
neolink:
image: quantumentangledandy/neolink
container_name: neolink
network_mode: "host"
ports:
- 8554:8554
volumes:
- /mnt/service/neolink/neolink.toml:/etc/neolink.toml
restart: unless-stopped
The OS ect too please and the details of any VLC errors. This just looks like the standard port forwarding and docker subnet issues. How familiar are you with these sort of things? Are you aware that docker create its own private subnet and that extra work is done to try and forward data through?
OS: Windows with docker on wsl VLC Errors:
Connection failed:
VLC could not connect to "127.0.0.1:8554".
Your input can't be opened:
VLC is unable to open the MRL 'rtsp://127.0.0.1:8554/fishcam/mainStream'. Check the log for details.
I'm somewhat familiar, but I assumed using network_mode: "host"
would skip those steps and directly allow the ports. currently, the container that is running neolink does not have an IP address whereas my other containers do. I'll try to do some more debugging.
which stream would be correct though?
'rtsp://127.0.0.1:8554/fishcam/mainStreamor 'rtsp://127.0.0.1:8554/fishcam
host mode only work on Linux. Docker on macos and windows is kind of run in a tiny linux virtual machine, so host dosen't work in the same way. There are other modes that can help I'm not sure if theyll help
If I had to guess because it is being run in wsl and docker on windows the ip address is NOT 127.0.0.1
or localhost
In WSL open a terminal and run ip a | grep eth0
to get your wsl interal ip address
@QuantumEntangledAndy Thank you! It seems the culprit was exactly that. removing the host option allows me to view it now lol.
I was banging my head against a wall for hours so I greatly appreciate the help!
Alright glad to see this wasn't too much trouble. Some of these docker/wsl/windows things create a lot of trouble since there are so many network layer on top of network layer that just adds extra points of failure
Anyways closing, if you need more help please open a new issue
Describe the bug I have set up the docker container and it seems to have been set up correctly, but when I try to view the RTSP stream in VLC, it can't connect. It may be that I am not using the correct stream but I was unable to find any tutorial about this.
Here are my docker logs:
I have tried the following network streams in VLC:
my neolink.toml:
Expected behavior stream shows up in VLC
Versions NVR software: n/a Neolink software: 0.5.18 docker Reolink camera model and firmware: Reolink Argus Eco, v3.0.0.1981_23040606