LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-04-2005, 10:01 PM   #1
deadlove75
Member
 
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47

Rep: Reputation: 15
Question webcam_server not working on website


Hell-o,

webcam_server 0.50
mandriva 10.2
firefox 1.0.2

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?


Thanks,

Jason Hodges
 
Old 09-05-2005, 01:12 AM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
From http://webcamserver.sourceforge.net/:
Quote:
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.
 
Old 09-05-2005, 02:36 AM   #3
deadlove75
Member
 
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tkedwards
From http://webcamserver.sourceforge.net/:
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.
 
Old 09-05-2005, 04:32 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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.

Last edited by tkedwards; 09-05-2005 at 04:45 AM.
 
Old 09-05-2005, 12:03 PM   #5
deadlove75
Member
 
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47

Original Poster
Rep: Reputation: 15
Unhappy

Hell-o,

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.


Blessed Be,

Jason Hodges
 
Old 09-05-2005, 05:43 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
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?
 
Old 09-05-2005, 09:58 PM   #7
deadlove75
Member
 
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
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.


Blessed Be,

Jason Hodges
 
Old 09-05-2005, 11:06 PM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
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?
 
Old 09-05-2005, 11:50 PM   #9
deadlove75
Member
 
Registered: Mar 2004
Location: Alabama
Distribution: Mandriva 2005 LE
Posts: 47

Original Poster
Rep: Reputation: 15
Quote:
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.


Blessed Be,

Jason Hodges
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
webcam_server behind firewall lacerto Linux - Security 1 04-28-2005 06:27 PM
My Website webwolf70 General 3 10-29-2004 09:16 AM
send mail via PHP from website on apache. not working mdkelly069 Linux - Software 0 02-25-2004 12:15 PM
Program to check if website is working jpc82 Linux - Software 0 10-16-2003 07:54 AM
Heres a website to help complete noobs get Samba working! hitbob Linux - Networking 0 08-22-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration