ibanezmatt13
Posts: 128
Joined: Fri Dec 28, 2012 9:49 am

Worldwide Webcam Server

Sun Mar 10, 2013 1:14 pm

Hi,

I have recently managed to get a webcam streaming over the Pi's own server using the following tutorial:

http://pingbin.com/2012/12/raspberry-pi ... er-motion/

The problem is, I can only access this server when I am connected to my home broadband. I would like to be able to access this webcam feed from anywhere and I thought that somebody would know how to create a web server that can be accessed anywhere.

Thanks
Matt

RomanG
Posts: 41
Joined: Fri Aug 17, 2012 11:56 am
Location: Ottawa, Canada

Re: Worldwide Webcam Server

Sun Mar 10, 2013 1:36 pm

Did you forward port on which the server broadcasts the video stream?

Default port is 8081, this needs to be forwarded on your router to your raspberry pi IP address.
Then to access is from the outside of your network, you enter your WAN IP address and the port in your browser, let's say your WAN IP is 173.65.48.122, then you would enter in your browser:
http://173.65.48.122:8081/
and should see your webcam video stream

If you forward also control port, which is by default 8080, then you can control motion configuration remotely as well.

Cheers,
Roman

helloineedhelp
Posts: 2
Joined: Tue Jan 28, 2014 3:48 pm

Re: Worldwide Webcam Server

Tue Jan 28, 2014 3:58 pm

iv tried that but i can only access it on my home network

helloineedhelp
Posts: 2
Joined: Tue Jan 28, 2014 3:48 pm

Re: Worldwide Webcam Server

Tue Jan 28, 2014 8:57 pm

Please help me

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: Worldwide Webcam Server

Tue Jan 28, 2014 9:08 pm

helloineedhelp wrote:iv tried that but i can only access it on my home network
You did it wrong.

Please explain in detail what you did and what results you are seeing or no one will be able to help you.

User avatar
FLYFISH TECHNOLOGIES
Posts: 1750
Joined: Thu Oct 03, 2013 7:48 am
Location: Ljubljana, Slovenia
Contact: Website

Re: Worldwide Webcam Server

Tue Jan 28, 2014 9:08 pm

Hi,
helloineedhelp wrote:Please help me
Ok: read carefully the question RomanG has asked...
The question has meaning - you should either check this setting or ask Mr. Google what is port forwarding.


Best wishes, Ivan Zilic.
Running out of GPIO pins and/or need to read analog values?
Solution: http://www.flyfish-tech.com/FF32

TheGreatGizmo
Posts: 11
Joined: Thu Dec 05, 2013 8:51 pm

Re: Worldwide Webcam Server

Tue Jan 28, 2014 9:10 pm

You've double checked that the port is being forwarded directly to the pi in your router settings?

And you're using your WAN IP and not your regular IP (192.168.1.1)?

If those are both yes, and it's working at home, then IDK what to tell you...

User avatar
redhawk
Posts: 3465
Joined: Sun Mar 04, 2012 2:13 pm
Location: ::1

Re: Worldwide Webcam Server

Tue Jan 28, 2014 9:57 pm

How are you streaming your webcam is it via http:\\ i.e. Apache or some other video streaming software??

Have you logged into your router yet and created a port forwarding rule in which: local IP is your Pi network address, and TCP port number is port number of your webcam service.??

Note that some Internet service providers or routers have issues with access to TCP 80 so you must use another number.
Next go to your PC and open the following page: http://nirsoft.net/show_my_ip_address.php this will show you external IP address.
Now try opening your webcam stream again but this time use the external IP address and not the internal one i.e. (192.168.x.x).
If the port forward rule was successful then the stream should play, if not then you have screw up somewhere.

Richard S.

Return to “Automation, sensing and robotics”