mirror of
https://github.com/motioneye-project/motioneye.git
synced 2026-03-02 22:57:06 -05:00
Failed to connect to localhost port 8081: Connection refused - Docker install #2425
Labels
No labels
Android app
Arch Linux
CI/CD
CSS
FreeBSD
HTML/HTTP
Home Assistant addon
JavaScript
Python
Raspberry Pi
Stale No Activity 60 Days
bug
code format
dependencies
dev branch
docker
documentation
duplicate
enhancement
feature
help wanted
i18n/l10n
invalid
legacy motionEye
meta
motion
motionEyeOS
notourproblem
python update
question
question
security
troubleshooting
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/motioneye#2425
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @UKnau22 on GitHub (Aug 9, 2023).
I have MotionEye installed in Docker and an rtsp camera connected to it. Within MotionEye I can access the camera stream, save motion triggered events/movies to my NAS etc... Everything is working great.
When I try to access the stream through the streaming URL 192.xxx.x.xxx:8081 in any web browser the "ERR_CONNECTION_REFUSED" message comes up.
In HomeAssistant I can access the stream through port 192.xxx.x.xxx:8765, however when I tap on the picture entity card to expand the stream a broken link shows up.
I'm running out of ideas how to fix this...


Any help, pointing me in the right direction would be appreciated
@eregnier commented on GitHub (Dec 9, 2024):
by default motion configuration file sets motion to listen localhost only for both web app and video stream.
It looks like you were able to see video from local software on device hosting motion or something like this, but not from another device by reaching the motion device from a 192.168.x.x lan address.
the principle here is to set stream_localhost off (instead of on) and webcontrol_localhost off (instead of on) in the motion configuration file located in /etc/motion/motion.conf
if you are in a docker execution context depending on how is build motion image, you might be able to mount the configuration file as a volume and update it's content before launching the container.