This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

HI I have a chinese ip cam with no software or manual I can view the stream and make changes to settings from ie browser (only) by typing the ip address of the cam. I want to setup the camera to a surveillance program like ispy or genius vision. But i dont know the url of the stream. Can anybody help in identifying the Video stream url for the camera? I dont know which protocol is being used.It is supposed to use onvif and http protocols, but not sure. Only i can say is that the compression type is H.264

asked 18 Nov '16, 11:48

suhail500's gravatar image

suhail500
6112
accept rate: 0%


By typing only the camera's IP (ca.me.ra.ip) into the browser window, you tell the browser to send a HTTP GET to url "http://ca.me.ra.ip:80". The camera then provides a html document which contains some text and layout and also the url of the video stream as I assume that it opens as a moving picture on the page. So you can either ask your browser to show you the original html received from the camera (in Mozilla Firefox, use Ctrl+U to open it in a new tab) and then look for the url of the video stream in it, or you can use Wireshark to capture your PC's communication with the camera, open the camera's main page again, and see what further http requests your PC sends after the first GET, or to what port(s) it establishes another TCP session (to see the latter, apply a display filter ip.dst == ca.me.ra.ip and tcp.flags.syn == 1 and tcp.flags.ack == 0). The camera may make analysis of http requests using Wireshark complex if it uses https and/or if it uses an exotic port for the video server, so I'd definitely start by analysing the html of the main page.

permanent link

answered 19 Nov '16, 00:36

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%

Hi Sandy Tkhs 4 the message. Tried the mozilla method , dont know what to make from it. Pasting the code that i got from cntrl+U page. Pls giv ur comments

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Login</title>
<script type="text/javascript" src="m.jsp"></script>
<script type="text/javascript" src="config.js"></script>

   <script type="text/javascript">
   var gHashCookie = new Hash.Cookie('NetSuveillanceWebCookie',{duration: 30});
var settings = {
    username:''
    }
    function savesetting() 
{

    gHashCookie.extend(settings);

}
var iLanguage=100;
function resizeL(){        

                    $('username').setStyle('width',InputName.width);
                   $('username').setStyle('height',InputName.height);   
                   $('username').setStyle('margin-top',InputName.marginTop);                                          
                   $('username').setStyle('margin-right',InputName.marginRight);
                   $('userNameInput').setStyle('margin-top',SpanLoginName.marginTop);       
                   $('password').setStyle('width',InputPassword.width);
                   $('password').setStyle('height',InputPassword.height);
                   $('password').setStyle('margin-top',InputPassword.marginTop);
                   $('password').setStyle('margin-right',InputPassword.marginRight);                   
                   $('loginBT').setStyle('width',LoginButton.width);
                   $('loginBT').setStyle('height',LoginButton.height);                    

                   if(1==LogoNumbers)
                   {
                       $("logo1").setStyle('background','none');
                   }  

                    wwidth =document.documentElement.clientWidth;
                    wheight=document.documentElement.clientHeight;
                    $('login').setStyle('width',wwidth);

                   $('lm').setStyle('width',wwidth);

                    if(wwidth<=417)
                    {
                        $('lmll').style.width=0;
                        $('lmrr').style.width=0;
                        $('lml').style.width=0;
                        $('lmr').style.widht=0;
                        $('lmm').setStyle('width',wwidth);

                        $('ldl').setStyle('width',0)
                        $('ldm').setStyle('width',wwidth);
                        $('ldr').setStyle('width',0)
                    }
                    else if(wwidth<=1127)
                   {
                        $('lmll').style.width=0;
                        $('lmrr').style.width=0;                          
                        $('lml').setStyle('width',(wwidth-417)/2+(355-(wwidth-417)/2));
                        $('lml').setStyle('margin-left',-(355-(wwidth-417)/2));
                        $('lmr').setStyle('width',(wwidth-417)/2);
                        $('lmm').setStyle('width',417);

                        $('ldl').setStyle('width',((wwidth-417)/2)-1)
                        $('ldm').setStyle('width',417);
                        $('ldr').setStyle('width',(wwidth-(417+(wwidth-417)/2-1)));

                    }
                    else
                    {        

                       $('lml').setStyle('margin-left',0);

                       $('lml').setStyle('width',355);                       
                       $('lmr').setStyle('width',355);
                       $('lmm').setStyle('width',417);                       

                       $('ldm').setStyle('width',417);
                       var w=(wwidth-(417+355+355))/2;
                       $('ldl').setStyle('width',w+355);
                       $('ldr').setStyle('width',(wwidth-(417+355+w)));                   

                        $('lmll').setStyle('width',w);  
                        $('lmrr').setStyle('width',w);                             
                    }

}
window.addEvent('resize',function(){
    resizeL();
});
window.addEvent('domready',function(){  
 $('userNameInput').setText(Translate.usr); 
 $('passWordInput').setText(Translate.pswd);
 $('loginBT').setText(Translate.login); 
 getsetting();
});

function getsetting(){
            if (gHashCookie.get('username')) {
        settings['username'] = gHashCookie.get('username');
    } else {
        settings['username'] = '';
    }

    $('username').setProperty('value', settings['username']); 

}

function savename() {
    var username = $("username").value;
    settings['username'] = username;    
    savesetting();

}
   </script>
<style type="text/css">
    *{font-size:12px;margin: 0;padding: 0; color:#fff; font-family:Arial, "ËÎÌå"}
#login {top:0px;position:absolute;width:100%;height:100%;margin:0;padding:0;left:0px;}
    #lx{width:478px;height:186px;margin:auto; margin-top:196px}
    #lb{width:53px;height:186px;background:url(lbbg.jpg);float:left}
    #lc{width:45px;height:186px;background:url(lcbg.jpg);float:left}
    #la{width:380px;height:186px;background:url(labg.jpg);float:left}
        #lal{width:8px; height:186px;float:left;background:url(lal.jpg)}
        #lar{width:24px;height:186px;float:right; background:url(lar.jpg)}
        #lalogo{width:251px;height:37px;position:relative;top:20px;left:11px;background:url(lalogo.jpg)}
        #lainput{width:253px;height:70px;float:left;margin:35px 0 0 5px;}
            #lainput div{width:250px;float:left;margin:5px 0 0 0;text-align:right}
            #lainput span{margin:0 6px 0 0}
            #lainput input{width:130px; height:18px;padding:3px 0 0 0}
            #lainput select{width:133px; height:18px;}
        #labt {width:10px;height:10px;float:left;margin:72px 0 0 0}     
</style>
</head>
<body>
    
<form action="" id="pass-login-form" name="pass-login-form" method="post"> <input type="hidden" name="command" value="login"/>
<input id="username" name="username" type="text" style="color: #000; font-size: 15px; margin: 0 120px 0 0; padding: 0px 0 0 0px; width: 133px; height: 25px;float:right;" onkeydown="javascript:if (event.keyCode==13) event.keyCode=9;"/>
<input id="password" name="password" type="password" style="color: #000; font-size: 15px; margin: 0 120px 0 0; padding: 0px 0 0 0px; width: 133px; height: 25px;float:right;" onkeydown="javascript:if (event.keyCode==13) savename();"/>
<button id="loginBT" type="submit" onclick="savename()" style="cursor: pointer;margin:25px 0 0 0;color: #000; width: 88px; height: 28px; padding: 4px 0 0 0; border: 0; background: url(bt.gif)"> </button>
</form>
<script type="text/javascript"> resizeL(); // var lang=(navigator.userLanguage||navigator.language).toLowerCase(); // if(lang=="zh-cn") // { // // $("userNameInput").setText("Óû§Ãû"); // $("passWordInput").setText("ÃÜÂë"); // $("loginBT").setText("µÇ¼"); // // } switch(iLanguage) { case 100: { document.write("<script src="English.js"><\/script>"); break; } case 101: { document.write("<script src="SimpChinese.js"><\/script>"); break; } default: { document.write("<script src="English.js"><\/script>"); } } </script> </body> </html>
(22 Nov '16, 10:06) suhail500
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×82
×48
×29
×26
×1

question asked: 18 Nov '16, 11:48

question was seen: 1,925 times

last updated: 22 Nov '16, 10:20

p​o​w​e​r​e​d by O​S​Q​A