no access to motion server
Hi, first post so hope i am in the right thread.
I got the program 'motion' working so that it does detect movement and stores jpg's on a usbdrive.
However i can not access the streaming server on a local net (10.0.0.10:8081)
There are no error reports on the raspi side when i run motion -s .
i only get :
Unable to connect Firefox can't establish a connection to the server at 10.0.0.10:8081
when i enter that address into firefox.
What am i doing wrong here?
(On the same raspi i have apache2 server running ok on port:80)
greetings,
Framboise
I got the program 'motion' working so that it does detect movement and stores jpg's on a usbdrive.
However i can not access the streaming server on a local net (10.0.0.10:8081)
There are no error reports on the raspi side when i run motion -s .
i only get :
Unable to connect Firefox can't establish a connection to the server at 10.0.0.10:8081
when i enter that address into firefox.
What am i doing wrong here?
(On the same raspi i have apache2 server running ok on port:80)
greetings,
Framboise
Re: no access to motion server
Oddily I am also suffering this problem also.
I have recently installed 2012-12-16-wheezy-raspbian.zip which I wonder maybe the cause.
I have recently installed 2012-12-16-wheezy-raspbian.zip which I wonder maybe the cause.
Re: no access to motion server
Motion by default restricts it's web server to localhost only (i.e. on the Pi itself)
The relevant lines in /etc/motion/motion.conf are:
Both the above lines should be set to off if you want web access from another computer:
The relevant lines in /etc/motion/motion.conf are:
Code: Select all
webcam_localhost on
control_localhost on
Code: Select all
webcam_localhost off
control_localhost off
Android app - Raspi Card Imager - download and image SD cards - No PC required !
Re: no access to motion server
Thanks for that!
it seems to work now.
Although i only get it to work on low resolution 352x288
When i use 640x480 it does not connect.
I use a logitech pro 9000 webcam.
i will try and fiddle with it some more
regards
Framboise
it seems to work now.
Although i only get it to work on low resolution 352x288
When i use 640x480 it does not connect.
I use a logitech pro 9000 webcam.
i will try and fiddle with it some more
regards
Framboise
Re: no access to motion server
Hi all,
Beginner here. I managed to get motion running and I'm accessing the Pi using local access. I'm trying to access it remotely. I already setup ddclient and it's running. Also tested my ddns and I can get access to my router. But I totally cannot get access to my Pi. When I try accessing it, all I get is The Connection was reset.
What else do I need to set. I have googled and setup my whole system at least 20 times but still nothing. Motion works, but I cannot stream to the internet or access it via ddns.
Thanks. in advance.
Beginner here. I managed to get motion running and I'm accessing the Pi using local access. I'm trying to access it remotely. I already setup ddclient and it's running. Also tested my ddns and I can get access to my router. But I totally cannot get access to my Pi. When I try accessing it, all I get is The Connection was reset.
What else do I need to set. I have googled and setup my whole system at least 20 times but still nothing. Motion works, but I cannot stream to the internet or access it via ddns.
Thanks. in advance.
Re: no access to motion server
Scratch my last post. Managed to do it. Next is to try and get 2 webcams on the pi.
Re: no access to motion server
I've got 2 webcams on my Pi now.flutey wrote:Scratch my last post. Managed to do it. Next is to try and get 2 webcams on the pi.
Easy enough to do, just configure motion.conf with all the general settings, uncomment thread1.conf and thread2.conf down the bottom and put the cam specific settings in thread1 and thread2.conf
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Re: no access to motion server
Not sure what to put. I see the webcam in each conf file as /dev/video0 and /dev/video1
at the bottom is:
# Live Webcam Server
############################################################
# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# The filename of the picture is appended as an argument for the command.
on_picture_save /usr/local/motion-extras/camparse1.pl
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
# Filename of movie is appended as an argument for the command.
on_movie_end /usr/local/motion-extras/mpegparse1.pl
What do I need to do. When I ran this, my video stops. Not sure what to do next. I saw your blog and you're running another way. Will try that next as soon as I succeed with just motion.
at the bottom is:
# Live Webcam Server
############################################################
# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# The filename of the picture is appended as an argument for the command.
on_picture_save /usr/local/motion-extras/camparse1.pl
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
# Filename of movie is appended as an argument for the command.
on_movie_end /usr/local/motion-extras/mpegparse1.pl
What do I need to do. When I ran this, my video stops. Not sure what to do next. I saw your blog and you're running another way. Will try that next as soon as I succeed with just motion.
Re: no access to motion server
Comment out the on_picture_save and on_movie_end lines for nowflutey wrote:Not sure what to put. I see the webcam in each conf file as /dev/video0 and /dev/video1
at the bottom is:
# Live Webcam Server
############################################################
# The mini-http server listens to this port for requests (default: 0 = disabled)
webcam_port 8081
# Command to be executed when a picture (.ppm|.jpg) is saved (default: none)
# The filename of the picture is appended as an argument for the command.
on_picture_save /usr/local/motion-extras/camparse1.pl
# Command to be executed when a movie file (.mpg|.avi) is closed. (default: none)
# Filename of movie is appended as an argument for the command.
on_movie_end /usr/local/motion-extras/mpegparse1.pl
What do I need to do. When I ran this, my video stops. Not sure what to do next. I saw your blog and you're running another way. Will try that next as soon as I succeed with just motion.
If thread1.conf and thread2.conf both have webcam_port <port number> in each file, then you should be able to access each individual webcam on http://<your pi ip>:8081 and http://<your pi ip>:8082
Motion is the easier way of doing it
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Re: no access to motion server
Thanks. Had to redo my image a few times. I can view both cameras for a short while and then the connection was reset msg comes out again. I wonder if it's a hardware issue as I am using a Logitech and an A4Tech camera.
I did comment out the 2 lines. Not trying out each feature and seeing how it works with a reboot each time
I did comment out the 2 lines. Not trying out each feature and seeing how it works with a reboot each time
-
- Posts: 1
- Joined: Fri Sep 13, 2013 2:51 pm
Re: no access to motion server
I came across this post when looking for a solution to my problem, namely:
motion.conf edited to switch off local only webcam and control options
could see control option on 8081
no connection on 8080 (or whichever port I tried)
Then I RTFM for motion: the output for the webcam is in a stream format that not many web browsers understand. I.e not chrome, and not internet explorer. Firefox is not brilliant but it does work.
So, if like me, you've come here with similar issues, try connecting to the webcam using firefox. Then go the motion website and read the manual for better solutions.
motion.conf edited to switch off local only webcam and control options
could see control option on 8081
no connection on 8080 (or whichever port I tried)
Then I RTFM for motion: the output for the webcam is in a stream format that not many web browsers understand. I.e not chrome, and not internet explorer. Firefox is not brilliant but it does work.
So, if like me, you've come here with similar issues, try connecting to the webcam using firefox. Then go the motion website and read the manual for better solutions.
Re: no access to motion server
Working in chrome for me at the moment.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Re: no access to motion server
Lagz,SirLagz wrote: I've got 2 webcams on my Pi now.
Easy enough to do, just configure motion.conf with all the general settings, uncomment thread1.conf and thread2.conf down the bottom and put the cam specific settings in thread1 and thread2.conf
I'm trying to do two webcams, but haven't gotten it to work so far. What OS are you using? Also, in the thread1.conf and thread2.conf files, how did you point to the two USB webcams? Like this?
Code: Select all
# in thread1.conf
videodevice /dev/video0
...
# in thread2.conf
videodevice /dev/video1
Re: no access to motion server
Using Raspbian. and yes, like thatrasusr wrote:Lagz,SirLagz wrote: I've got 2 webcams on my Pi now.
Easy enough to do, just configure motion.conf with all the general settings, uncomment thread1.conf and thread2.conf down the bottom and put the cam specific settings in thread1 and thread2.conf
I'm trying to do two webcams, but haven't gotten it to work so far. What OS are you using? Also, in the thread1.conf and thread2.conf files, how did you point to the two USB webcams? Like this?
Code: Select all
# in thread1.conf videodevice /dev/video0 ... # in thread2.conf videodevice /dev/video1
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Re: no access to motion server
Things to check that may be missed:
1) if the pi is wireless, and you have forced MAC address control in the wireless access point device, modify the wap to include the MAC address of the wireless device (dongle) attached to the pi.
2) if you want to see the MAC away from home, like at the local coffee shop, make sure your router has been correctly configured. On my router its called "virtual server". Your router has an IP address on the internet, so you tell the "virtual server" that any requests for port 8081 (for example) from the internet shall be forwarded to the ip address of your local rpi's (on your inside network) motion http server (8081 for example).
If your modem/router/wirelessAP is provided by your internet service provider, you may have to contact the isp to get the logon information (name/password) so you can logon to the router's http server to setup port forwarding.
Fred
1) if the pi is wireless, and you have forced MAC address control in the wireless access point device, modify the wap to include the MAC address of the wireless device (dongle) attached to the pi.
2) if you want to see the MAC away from home, like at the local coffee shop, make sure your router has been correctly configured. On my router its called "virtual server". Your router has an IP address on the internet, so you tell the "virtual server" that any requests for port 8081 (for example) from the internet shall be forwarded to the ip address of your local rpi's (on your inside network) motion http server (8081 for example).
If your modem/router/wirelessAP is provided by your internet service provider, you may have to contact the isp to get the logon information (name/password) so you can logon to the router's http server to setup port forwarding.
Fred
-
- Posts: 8
- Joined: Mon Oct 07, 2013 10:22 am
Re: no access to motion server
I'm having issues with this as well.
My camera is detected by the Pi, the camera's light is on, I can visit the config webpage (localhost and external) but when I try to go to the webcam view page, it doesn't work. The browser loads for a second or two then stops and the last webpage I was viewing stays on the screen, I don't even get a blank page or an error message.
Any ideas?
My camera is detected by the Pi, the camera's light is on, I can visit the config webpage (localhost and external) but when I try to go to the webcam view page, it doesn't work. The browser loads for a second or two then stops and the last webpage I was viewing stays on the screen, I don't even get a blank page or an error message.
Any ideas?
Re: no access to motion server
Can you access the stream via VLC rather than via web browser ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
-
- Posts: 8
- Joined: Mon Oct 07, 2013 10:22 am
Re: no access to motion server
Nice suggestion, I'll try it when I get home later.SirLagz wrote:Can you access the stream via VLC rather than via web browser ?

-
- Posts: 8
- Joined: Mon Oct 07, 2013 10:22 am
Re: no access to motion server
Hi, sorry it took so long for me to reply.
VLC didn't work either, I got a 'Cannot connect to stream' error. Also, occasionally I get a '404 Page not found' error when trying to view in a web browser (strangely, not everytime).
It almost seems like a problem with the web server, although the config page works fine. I even tried stopping Apache to see if there was a conflict but it made no difference.
VLC didn't work either, I got a 'Cannot connect to stream' error. Also, occasionally I get a '404 Page not found' error when trying to view in a web browser (strangely, not everytime).
It almost seems like a problem with the web server, although the config page works fine. I even tried stopping Apache to see if there was a conflict but it made no difference.
Re: no access to motion server
When motion is running, can you run a on the Pi to see what the output is (assuming that you're using default settings) ?
Code: Select all
lsof -i | grep 8081
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
-
- Posts: 8
- Joined: Mon Oct 07, 2013 10:22 am
Re: no access to motion server
Well I did that (had to install lsof using apt-get first) and it returned no output at all??SirLagz wrote:When motion is running, can you run aon the Pi to see what the output is (assuming that you're using default settings) ?Code: Select all
lsof -i | grep 8081
I am using the default port settings.
Re: no access to motion server
That means that motion either isn't running, or isn't listening on that port.
Is motion running ?
Is motion running ?
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
-
- Posts: 8
- Joined: Mon Oct 07, 2013 10:22 am
Re: no access to motion server
I've checked and Motion is already running, see below:
Here's my server settings as well:
Its very strange as I believe I have followed the online guides to the letter. I do appreciate your help, I'd love to get this working
Here's my server settings as well:
Its very strange as I believe I have followed the online guides to the letter. I do appreciate your help, I'd love to get this working

Re: no access to motion server
Can you run "ps aux | grep motion" and paste the output
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
-
- Posts: 8
- Joined: Mon Oct 07, 2013 10:22 am
Re: no access to motion server
Here it is...
Thanks.
Thanks.