IP camera access?

Discussion in 'NZ Computing' started by Gordy, Jul 18, 2006.

  1. Gordy

    Gordy Guest

    Hi,

    I need help getting an IP camera image on LAN port 82 out to the
    internet on WAN port 80.

    I have two IP cameras on my LAN that I want to access from a remote
    web browser. One camera is on LAN port 80 and the other is on port 82.

    These cameras are both accessible on the internet with a remote
    browser where a computer has both ports accessible, using WAN_IP port
    80 and 82

    However I want to access the port 82 camera from a remote web browser
    on a computer that has only got port 80 available.
    Port 82 must be blocked by a firewall I guess.

    For my cameras, I have set up a server using WinXP Pro and IIS that is
    on WAN port 80.

    My idea is to use the server to present camera images from any LAN
    port to the internet on WAN port 80.

    I can access a jpg image file ok through the server.

    I can't access the camera images via the server from LAN port 80 or
    82.

    I have one camera on LAN 192.168.1.30
    and another on LAN 192.168.1.32:82

    I have port forward set up on my ADSL router for the LAN_IP adresses
    and for port 82.

    The server code is:

    <img alt="HouseCam" src="http://192.168.1.32:82/cgi-bin/video.jpg"
    style="width: 320px; height: 240px;" -=""><br>

    (/cgi-bin/video.jpg grabs a snapshot from the IP camera)

    The remote browser shows a blank image.

    The remote browser status shows the browser trying to fetch an image
    from server camera LAN_IP address which of course can't be found on
    the remote computer.

    Grr....

    Any help or pointers would be most appreciated.

    TIA

    Gordon
     
    Gordy, Jul 18, 2006
    #1
    1. Advertising

  2. Gordy

    Steve Guest

    On Tue, 18 Jul 2006 23:35:47 +1200, Gordy wrote:

    > Hi,
    >
    > I need help getting an IP camera image on LAN port 82 out to the
    > internet on WAN port 80.
    >
    > I have two IP cameras on my LAN that I want to access from a remote
    > web browser. One camera is on LAN port 80 and the other is on port 82.
    >
    > These cameras are both accessible on the internet with a remote
    > browser where a computer has both ports accessible, using WAN_IP port
    > 80 and 82
    >
    > However I want to access the port 82 camera from a remote web browser
    > on a computer that has only got port 80 available.
    > Port 82 must be blocked by a firewall I guess.
    >
    > For my cameras, I have set up a server using WinXP Pro and IIS that is
    > on WAN port 80.
    >
    > My idea is to use the server to present camera images from any LAN
    > port to the internet on WAN port 80.
    >
    > I can access a jpg image file ok through the server.
    >
    > I can't access the camera images via the server from LAN port 80 or
    > 82.
    >
    > I have one camera on LAN 192.168.1.30
    > and another on LAN 192.168.1.32:82
    >
    > I have port forward set up on my ADSL router for the LAN_IP adresses
    > and for port 82.
    >
    > The server code is:
    >
    > <img alt="HouseCam" src="http://192.168.1.32:82/cgi-bin/video.jpg"
    > style="width: 320px; height: 240px;" -=""><br>
    >
    > (/cgi-bin/video.jpg grabs a snapshot from the IP camera)
    >
    > The remote browser shows a blank image.
    >
    > The remote browser status shows the browser trying to fetch an image
    > from server camera LAN_IP address which of course can't be found on
    > the remote computer.
    >
    > Grr....
    >
    > Any help or pointers would be most appreciated.
    >
    > TIA
    >
    > Gordon


    Which side of the firewall are you on? That IP address will be NATed from
    the outside world.
     
    Steve, Jul 18, 2006
    #2
    1. Advertising

  3. Gordy

    Gordy Guest

    With my limited knowledge I have set up NAT WAN_IP to LAN_IP.

    >From the remote web browser that will not allow port 82 access I am

    inside a firewall (my employer).

    Cheers

    Gordon



    > Which side of the firewall are you on? That IP address will be NATed from
    > the outside world.
     
    Gordy, Jul 18, 2006
    #3
  4. Gordy

    Allistar Guest

    Gordy wrote:

    > Hi,
    >
    > I need help getting an IP camera image on LAN port 82 out to the
    > internet on WAN port 80.
    >
    > I have two IP cameras on my LAN that I want to access from a remote
    > web browser. One camera is on LAN port 80 and the other is on port 82.
    >
    > These cameras are both accessible on the internet with a remote
    > browser where a computer has both ports accessible, using WAN_IP port
    > 80 and 82
    >
    > However I want to access the port 82 camera from a remote web browser
    > on a computer that has only got port 80 available.
    > Port 82 must be blocked by a firewall I guess.
    >
    > For my cameras, I have set up a server using WinXP Pro and IIS that is
    > on WAN port 80.
    >
    > My idea is to use the server to present camera images from any LAN
    > port to the internet on WAN port 80.
    >
    > I can access a jpg image file ok through the server.
    >
    > I can't access the camera images via the server from LAN port 80 or
    > 82.
    >
    > I have one camera on LAN 192.168.1.30
    > and another on LAN 192.168.1.32:82
    >
    > I have port forward set up on my ADSL router for the LAN_IP adresses
    > and for port 82.
    >
    > The server code is:
    >
    > <img alt="HouseCam" src="http://192.168.1.32:82/cgi-bin/video.jpg"
    > style="width: 320px; height: 240px;" -=""><br>
    >
    > (/cgi-bin/video.jpg grabs a snapshot from the IP camera)
    >
    > The remote browser shows a blank image.
    >
    > The remote browser status shows the browser trying to fetch an image
    > from server camera LAN_IP address which of course can't be found on
    > the remote computer.
    >
    > Grr....
    >
    > Any help or pointers would be most appreciated.
    >
    > TIA
    >
    > Gordon


    Sounds like something a reverse proxy would solve. I know how to set one up
    in Apache (it's pretty straight forward), but not IIS. A reverse proxy is
    often used for making otherwise inaccessible web servers available through
    a visible web server - normally to allow remote people to see internal
    webservers.

    I.e. you could have camera1 = http://somewhere.com/camera1/
    And camera2 = http://somewhere.com/camera2/

    But your main webserver revers proxies /camera2/ to
    http://192.168.1.32:82/cgi/bin

    Regards,
    Allistar.
     
    Allistar, Jul 18, 2006
    #4
  5. In message <>, Gordy wrote:

    > The server code is:
    >
    > <img alt="HouseCam" src="http://192.168.1.32:82/cgi-bin/video.jpg"
    > style="width: 320px; height: 240px;" -=""><br>


    This won't work from outside your LAN. 192.168.x.x addresses are entirely
    internal to your LAN.

    What you could do is open up a pinhole through your ADSL/firewall so port 82
    goes through to the IP address of your camera. Then change the 192.168.1.32
    in the above URL to your external IP address. But then the link won't work
    internally on your LAN.

    Another possibility is to have a periodic task on your main Web server
    fetching images from the camera to a local filename (overwriting the same
    file each time), and then simply serve up that file statically.
     
    Lawrence D'Oliveiro, Jul 19, 2006
    #5
  6. Gordy

    Gordy Guest


    > Another possibility is to have a periodic task on your main Web server
    > fetching images from the camera to a local filename (overwriting the same
    > file each time), and then simply serve up that file statically.


    That sounds like a way to go. Refreshing every 5 to 10 seconds would
    not use much of the LAN bandwidth. Thanks.
     
    Gordy, Jul 19, 2006
    #6
  7. Gordy

    jasen Guest

    On 2006-07-18, Gordy <> wrote:
    > Hi,
    >
    > I need help getting an IP camera image on LAN port 82 out to the
    > internet on WAN port 80.
    >
    > I have two IP cameras on my LAN that I want to access from a remote
    > web browser. One camera is on LAN port 80 and the other is on port 82.


    what's a LAN port ?

    > These cameras are both accessible on the internet with a remote
    > browser where a computer has both ports accessible, using WAN_IP port
    > 80 and 82


    ok..

    > However I want to access the port 82 camera from a remote web browser
    > on a computer that has only got port 80 available.


    easy fix: try going through a proxy.

    > Port 82 must be blocked by a firewall I guess.
    >
    > For my cameras, I have set up a server using WinXP Pro and IIS that is
    > on WAN port 80.
    >
    > My idea is to use the server to present camera images from any LAN
    > port to the internet on WAN port 80.
    >
    > I can access a jpg image file ok through the server.
    >
    > I can't access the camera images via the server from LAN port 80 or
    > 82.


    you'll need to set that up on your server so that requests to the server are
    translated into requests to the camera and the camera's response is sent to
    the client.

    this could probably be done using 10-20 lines of PHP. or some other scripting
    language.

    Bye.
    Jasen
     
    jasen, Jul 19, 2006
    #7
  8. Gordy

    Allistar Guest

    jasen wrote:

    > On 2006-07-18, Gordy <> wrote:
    >> Hi,
    >>
    >> I need help getting an IP camera image on LAN port 82 out to the
    >> internet on WAN port 80.
    >>
    >> I have two IP cameras on my LAN that I want to access from a remote
    >> web browser. One camera is on LAN port 80 and the other is on port 82.

    >
    > what's a LAN port ?
    >
    >> These cameras are both accessible on the internet with a remote
    >> browser where a computer has both ports accessible, using WAN_IP port
    >> 80 and 82

    >
    > ok..
    >
    >> However I want to access the port 82 camera from a remote web browser
    >> on a computer that has only got port 80 available.

    >
    > easy fix: try going through a proxy.
    >
    >> Port 82 must be blocked by a firewall I guess.
    >>
    >> For my cameras, I have set up a server using WinXP Pro and IIS that is
    >> on WAN port 80.
    >>
    >> My idea is to use the server to present camera images from any LAN
    >> port to the internet on WAN port 80.
    >>
    >> I can access a jpg image file ok through the server.
    >>
    >> I can't access the camera images via the server from LAN port 80 or
    >> 82.

    >
    > you'll need to set that up on your server so that requests to the server
    > are translated into requests to the camera and the camera's response is
    > sent to the client.
    >
    > this could probably be done using 10-20 lines of PHP. or some other
    > scripting language.
    >
    > Bye.
    > Jasen


    Sounds like a reverse proxy to me, as I suggested in my initial reply. They
    are quite easy to set up and are designed precisely for this situation.

    Allistar.
     
    Allistar, Jul 20, 2006
    #8
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. yar
    Replies:
    4
    Views:
    1,799
    Juan Carlos \(El fortinero\)
    Sep 21, 2004
  2. =?Utf-8?B?Qmx1Y2FkZHk3MQ==?=

    Desktop can't access Laptop but Laptop can access desktop

    =?Utf-8?B?Qmx1Y2FkZHk3MQ==?=, Nov 22, 2004, in forum: Wireless Networking
    Replies:
    2
    Views:
    829
    Chuck
    Nov 23, 2004
  3. =?Utf-8?B?SiBIYW1lcg==?=

    one computer can access shared files the other can't even access

    =?Utf-8?B?SiBIYW1lcg==?=, Dec 6, 2004, in forum: Wireless Networking
    Replies:
    4
    Views:
    3,676
    =?Utf-8?B?SiBIYW1lcg==?=
    Dec 7, 2004
  4. =?Utf-8?B?ZGZhdG92aWM=?=

    wireless can't access wired. But Wired can access wireless

    =?Utf-8?B?ZGZhdG92aWM=?=, Feb 4, 2005, in forum: Wireless Networking
    Replies:
    5
    Views:
    1,294
    Carey Holzman
    Feb 5, 2005
  5. Southern Kiwi
    Replies:
    6
    Views:
    2,264
    Southern Kiwi
    Mar 19, 2006
Loading...

Share This Page