Cobalt Qube 3 ...

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Cobalt Qube 3 ...

Post by Håkan »

Hej or Hallo,

I´m running a Cobalt Linux server wit the adress www.r129.info and local adress 192.168.0.1. On another computer (adress 192.168.0.3) am running Yawcam. I get the things working when I´m setting the browser local to "http://192.168.0.3:8081/local.html" or just "http://192.168.0.3:8081", but not if am pointing to "www.r129.info/8081". A´m using the advanced tab and have put in www.r129.info there.

What I´m doing wrong?

/Håkan
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

I suppose that your linux server is connected to the Internet and that you share the internet connection via NAT (Network Address Translation). Is this correct?

In that case you have to open (sometimes called to map) the used ports from you server to the local machine where you run Yawcam. (The default ports for streaming is 8081 and 8021)
Exactly how this is done differs from system to system. Check the man page for the software you are using...

The other thing you have to do is to check the "Advanced" checkbox and fill in your public computer name i the "Force public ip" field. (just like you have done :D )

Hopefully you only have forgotten to open/map the ports...

/malun
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

malun wrote:I suppose that your linux server is connected to the Internet and that you share the internet connection via NAT (Network Address Translation). Is this correct?
Ehh.. My Linuxserver has 2 networkcards. The first card is connected to internet (ADSL). The second card is connected to a router (D-Links DI-804), and all my other computers is also connected to the router. All computers have fixed IP-adress.
malun wrote:In that case you have to open (sometimes called to map) the used ports from you server to the local machine where you run Yawcam. (The default ports for streaming is 8081 and 8021)
Exactly how this is done differs from system to system. Check the man page for the software you are using...
I redirect port 8081 in Linux servers firewall to my Yawcam machine. Should also 8021 be redirected?
malun wrote:The other thing you have to do is to check the "Advanced" checkbox and fill in your public computer name i the "Force public ip" field. (just like you have done :D ) Hopefully you only have forgotten to open/map the ports...
Should I put in the IP from Internet (217.209.88.16) or the local adress (192.168.0.1) or the "www.r129.info" adress?
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

Håkan wrote:I redirect port 8081 in Linux servers firewall to my Yawcam machine. Should also 8021 be redirected?
Yes it should. Both ports have to be redirected.
Håkan wrote:Should I put in the IP from Internet (217.209.88.16) or the local adress (192.168.0.1) or the "www.r129.info" adress?
It will work with either your public ip (217.209.88.16) or your domain name (www.r129.info), but not with your local ip.

I'm not sure I understand the way you are using your router. Perhaps you have to redirect the ports in your router settings too. (check page 27 in your router's manual: http://213.216.192.242/techdocs/Manual_V.02.pdf)

By the way, Yawcam is using TCP. So that is what you have to redirect :wink:

/malun
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

malun wrote:]I'm not sure I understand the way you are using your router. Perhaps you have to redirect the ports in your router settings too.
/malun
:D I´m doing nothing with the router. I just have 1 cable from the Linux, so I have to use the router as a switch, because I have 3 other computers connected to the network. However. I changed the port redirection on the wrong place in the Linux :oops: For test I´m using telnet to my server, that I have redirected to my DI-804. That works fine. I´m now thesting the webcam, but i dont work yet. I test more during the evning....

Thanx for your help...
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

Aha.. you are using the router as a switch.
Now things are getting clearer :D

Then it should work if you redirect the ports on your linux server :?
I hope the evening's testing went out well...

/malun
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

Nopp! I changed the roter to a clean BIG switch (DFE-916x) just in case. The problem seems to be that ...

I redirect port 23 to my computer (computer 3) in the Linux setup.
I run the Telnet server in computer 3.
I telnet from computer 2 direct to computer 3 - Works fine!
I telnet to Linux and I have a connecteon but it is up, down, up, down... som maybe I can´t send anything back?!

I also tested to plug in my router to the switch, and did a redirect to that one. I telnet to my Linux and have a login on the router. Works fine.

Hmm, I´ts something I don´t understand here, but the problem is NOT with the Yawcam.

/Håkan
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

I have the following setup:

internet -> server -> switch -> local computers

I run FreeBSD on my server and shares the internet connection via NAT (ipnat) to my local computers. I redirect the the ports 8081 and 8021 to my local computer where I run Yawcam (192.168.0.2).

In my settings file for ipnat (/etc/ipnat.conf) I have the following lines:

Code: Select all

rdr ep0 0/0 port 8021 -> 192.168.0.2 port 8021 tcp
rdr ep0 0/0 port 8081 -> 192.168.0.2 port 8081 tcp
(Where ep0 is my external network interface.)


Let's say my server has a domain i.e www.domain.com

In the settings for the stream function in Yawcam I have checked the "Advanced" checkbox and filled in www.domain.com in the "Force public ip" field.

Locally I can watch the video stream on http://192.168.0.2:8081/local.html
But It doesn't work when I'm trying from a local computer to access http://www.domain.com:8081/local.html or http://www.domain.com:8081/

On the other hand it works just fine for my frieds to watch on the url: http://www.domain.com:8081/


What did I want to say with all this? Well... Ask a fried to test if he/she is able to see you ;)

/malun
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

malun wrote:What did I want to say with all this? Well... Ask a fried to test if he/she is able to see you ;) /malun
:D Aha!
Are you my friend? In that case is the adress is www.r129.info:8081 :wink:
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

If I try the url: http://www.r129.info:8081/foobar.html i get a error 404 (from Yawcam).

When I try http://www.r129.info:8081/local.html I the applet shows up, but gives an error message. (This should happen because I'm not sitting at your local network ) So far so good.

But, when I try http://www.r129.info:8081/ or http://www.r129.info:8081/index.html all I get is a blank page!

I tried with telnet:

Code: Select all

$ telnet 
telnet> open www.r129.info 8081
Trying 217.209.88.16...
Connected to www.r129.info.
Escape character is '^]'.
GET /index.html
HTTP/1.1 200 OK
Server: yawcam/0.1
Content-Length:0
Mime-Type: text/html
Content-Type: text/html

Connection closed by foreign host.
Note that the Content-Length is 0! Very strange...

Please check that you have the files template.html index.html and local.html in your stream directory where you installed Yawcam. (i.e. c:\program files\yawcam\stream ) Also check that the content of the files seems to be ok.
If they are not, try to reinstall Yawcam.

I really can't understand why I only get a blank page...

/malun
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

malun wrote:Please check that you have the files template.html index.html and local.html in your stream directory where you installed Yawcam. (i.e. c:\program files\yawcam\stream ) Also check that the content of the files seems to be ok.
If they are not, try to reinstall Yawcam.

I really can't understand why I only get a blank page...

/malun
I may have alter something in the local file :oops: Okidooki, the original file is back now.
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

Still no change...

Make a copy of local.html and name it local2.html
Edit local2.html to look like this:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Yawcam</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<div align="center">
  <p><strong><font size="5" face="Verdana, Arial, Helvetica, sans-serif"></font></strong> </p>
  <p>
    <APPLET CODE=YawApplet.class WIDTH="320" HEIGHT="240">
      <param name="Host" value="217.209.88.16">
      <param name="Port" value="8021">
    </APPLET>
  </p>
  <p><a href="http://www.yawcam.com"> <font face="Verdana, Arial, Helvetica, sans-serif">www.yawcam.com</font></a></p>
</div>
</body>
</html>

The only line I have changed is:

Code: Select all

<param name="Host" value="217.209.88.16">

Do this, an I'll try again...

Btw, Feel free to modify template.html, but not until you get it to work with the original one :wink:

/malun
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

malun wrote:Do this, an I'll try again... /malun
I cut and paste your code. Done!

EDIT: Sorry, I called it local. I change that!

EDIT: Now it should be ok.... :oops:
Håkan
Posts: 15
Joined: Sat Feb 28, 2004 10:45 pm

Post by Håkan »

Here is my config:

Image

Image
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Post by malun »

Your settings looks fine :)

Now I can see your cam:

Image

But I can't figure out why it doesn't work with index.html
Actually the html code in index.html should look like the code in local2.html right now, does it?


I think you should decrease the image quality! You can't see so big difference between 100% and 50%, but the data sent over internet will be much less. So if you increase the image quality viewer will get more frames per second.

/malun
Post Reply