MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having trouble with webcam_server. I can get it working locally, but I can't get it to work once I upload it to my website. I change the "localhost" part in the html file to my ip address or ip address name (the long thing with .dhcp and .com in it). Both seem to work locally, but not when I upload it to my site. On the site, it says connecting but it never does, the little red dot stays red.
I'm also using Shorewall as my firewall. I've opened port 8888 which I think webcam_server uses and that doesn't help. I've tried to turn off Shorewall and that doesn't work either (though, I'm not really sure Shorewall completely stops). I also use godaddy to host my site. Could godaddy by my problem?
Anybody have any ideas?
Else, does anybody know of any other webcam streaming software for Linux?
You'll find a file called 'webcam.html' in the 'src/client' folder. Copy this to a directory under your web site. NOTE: Please edit this file. You have to change 'localhost' to the network name of your computer, otherwise you will be the only one who can see yourself on the camera using the applet.
As I said in my post, "I change the "localhost" part in the html file to my ip address or ip address name (the long thing with .dhcp and .com in it)" So, I've already tried that.
I can type in my ip address or long name thing plus 8888 for the port and get a single image in firefox. But the applet still says connecting.
Blessed Be,
Jason Hodges
Last edited by deadlove75; 09-05-2005 at 03:02 AM.
When you say you 'uploaded it to your website' what machine is that website hosted on? Is it just an account on a web hosting provider or is it a machine you control. Ie. does the problem only occur when you upload it to a godaddy server?
Or if its on a box you control run this command (as root) as you try to connect:
Code:
tail -f /var/log/messages
This will show if the firewall is blocking it.
You can also run
Code:
netstat -nlp
to check wether or not the webcam server proccess is actually listening on that port.
The website is hosted on godaddy. I can open the html from a local folder and have it work. But not when I open it on godaddy.
I tried the netstat -nlp thing, and I didn't see webcam_server or it's PID listed. I even just tried netstat. I also tried starting web_server with the -p option and saying which port to listen on. Would my firewall, Shorewall, stop it from listening? I added 8888 as an accepted tcp and udp port. Though, it is possible I could had added it wrong and it's not supposed to say NET or FW or ACCEPT like the other port stuff.
The website is hosted on godaddy. I can open the html from a local folder and have it work. But not when I open it on godaddy.
If its just a web hosting account then I doubt its going to work - most web hosting providers aren't going to let you run arbitrary services on their servers. However if its a co-located server or something that you control then yes you'll probably be alright. So when you say its hosted at godaddy what kind of hosting do they do? web hosting or just domain hosting where you own the server?
Quote:
I tried the netstat -nlp thing, and I didn't see webcam_server or it's PID listed.
It can only show the PIDs if run as root.
Quote:
I added 8888 as an accepted tcp and udp port. Though, it is possible I could had added it wrong and it's not supposed to say NET or FW or ACCEPT like the other port stuff.
Sounds right.
I really need more info about your setup - is the whole website hosted on godaddy or is it just the domain that's hosted there and points back to your machine or something like that?
Originally posted by tkedwards If its just a web hosting account then I doubt its going to work - most web hosting providers aren't going to let you run arbitrary services on their servers. However if its a co-located server or something that you control then yes you'll probably be alright. So when you say its hosted at godaddy what kind of hosting do they do? web hosting or just domain hosting where you own the server?
It can only show the PIDs if run as root.
Sounds right.
I really need more info about your setup - is the whole website hosted on godaddy or is it just the domain that's hosted there and points back to your machine or something like that?
I'm on Godaddy's basic hosting package. I'm just hosting files there. The java app included with webcam_server is supposed to point back to my machine. I don't think the java stuff is trying to run anything on their machine.
I am running webcam_server and netstat as root and I can't find it's PID in any kind netstat stuff.
Ok. If you watch the messages log (tail -f /var/log/messages as root) as you try to connect does it show any messages about the firewall blocking it?
If you goto http://grc.com and try their shields up test does it show port 8888 as open?
Originally posted by tkedwards Ok. If you watch the messages log (tail -f /var/log/messages as root) as you try to connect does it show any messages about the firewall blocking it?
If you goto http://grc.com and try their shields up test does it show port 8888 as open?
I tried grc.com and it said that 8888 was stealthed. So I shutdown shorewall and grc.com said 8888 was open. But webcam_server still wouldn't work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.