Hikvision DS-4420IW-D - no URL access (error 405 no access)

Texel

n3wb
Nov 2, 2014
10
0
Hi all,

I tried to open the video/picture streams via URL (xxx.xxx.xxx.xxx/streaming/channels/1/picture).

However I get an 405 Access error. I checked the config but no special switch found to turn the URL access on. I have around 10 Hikvision cams - all work except the newest one. I running it on firmware 5.5.12 build 171214. It is a Chinese model with Chinese UI.

Does a firmware update help?

Kind regards, Texel
 
Hi, I don’t have the CGI switch in my settings?! There is only the ONVIF...
Any clue what to do?
 
Are you sure that the feature you are trying to use exists in the chinese version of the camera. Chinese cameras have different options then the international version of the same camera.
 
It might be in a different location in the config menu. Is the webGUI in Chinese? If so, have you tried loading iVMS-4200 on a PC and configuring the camera from there? It should allow you to configure the camera in English.
I believe in older firmware CGI was enabled by default.
This works for me in Chrome or FF, not IE11
First make sure your sub-stream is set to MJPEG. Then modify the URL below accordingly. It may ask you to re-enter the admin login details.
http://admin:yourPassword@192.168.1.XX/Streaming/channels/102/httpPreview
upload_2019-4-21_22-38-30.png


iVMS-4200 as an option for English menu:
upload_2019-4-21_22-24-20.png

Then select the camera from the list and click Remote Configuration>General, that should give you an English config menu.
upload_2019-4-21_22-25-56.png

Keep us posted.
 
It might be in a different location in the config menu. Is the webGUI in Chinese? If so, have you tried loading iVMS-4200 on a PC and configuring the camera from there? It should allow you to configure the camera in English.
I believe in older firmware CGI was enabled by default.
This works for me in Chrome or FF, not IE11
First make sure your sub-stream is set to MJPEG. Then modify the URL below accordingly. It may ask you to re-enter the admin login details.
http://admin:yourPassword@192.168.1.XX/Streaming/channels/102/httpPreview
View attachment 41672


iVMS-4200 as an option for English menu:
View attachment 41670

Then select the camera from the list and click Remote Configuration>General, that should give you an English config menu.
View attachment 41671

Keep us posted.
Hello,
I have his same problem and doing so this happens on Chrome and FF
 

Attachments

  • 20190424_101932.jpg
    20190424_101932.jpg
    4.9 MB · Views: 126
Hi StewartM,

thanks for the detailed description. However it seems to be more serious. I debugged the Javascript code and saw the they have hided the CGI switch. I tried to override it, however it seems not to save the CGI setting.

I still get the 405 error:

Access Error: 405 -- Method Not Allowed
Requested method GET not supported for URL: /Streaming/channels/102/httpPreview

It seems to be a crippled firmware on my device :(

Anybody who has a different Chinese firmware version for the DS-2DC4420IW-D?

regards, Texel
 
Hi Texel, no promises but let's try force enable CGI.
Provided you have the admin user login details try the following:
Add the Restlet Client to your Chrome browser. Open Chrome and navigate here:
Restlet Client - REST API Testing
Once it's installed, click the blue 'R' icon to the right of the address bar. Skip the Sign In. Modify the password and camera IP accordingly.
Method = PUT
URL = http://admin:yourPassword@192.168.1.64/ISAPI/System/Network/Integrate
Body (copy and paste the below into it):
<Integrate>
<CGI><enable>true</enable><certificateType>digest/basic</certificateType></CGI>
<ONVIF><enable>true</enable><certificateType /></ONVIF>
</Integrate>

Then click SEND
upload_2019-4-25_18-55-48.png

Provided your camera isn't too hobbled you should receive a response. Post any errors (we might need to force the authentication to digest/basic).
upload_2019-4-25_19-4-29.png

This works on my camera, but it's not a Chinese grey market import. Let me know if the response is 'OK'.
If so, we can move onto the next step.
 

Attachments

  • upload_2019-4-25_19-2-59.png
    upload_2019-4-25_19-2-59.png
    78.4 KB · Views: 136
  • Like
Reactions: alastairstevenson
Hi, thanks for the detailed help.

I get the ok. However it seems thew CGI is missing.

When I try to get the parameters - I receive only the onvif:

<?xml version="1.0" encoding="UTF-8" ?>
<Integrateversion="2.0"xmlns="http://www.hikvision.com/ver20/XMLSchema">
<ONVIF>
<enable>true</enable>
</ONVIF>
<ISAPI>
<enable>true</enable>
</ISAPI>
</Integrate>
 
@StewardM: correction - It works! After a reboot the setting seems to be saved and I can access the camera via CGI!
Thanks a lot for your help!
 
Hi, sorry to open the topic again.
The image viewing works perfect with http://user:pw@192.168.1.90/ISAPI/Streaming/channels/1/picture
However the PTZ steering doesn't work.
I tried:
/ISAPI/PTZ/channels/1/PTZControl?command=PAN_LEFT 401 Forbidden
/ISAPI/PTZCtrl/channels/1/Continuous 400 Bad request

Is there any command via System URL to move the PTZ?
E.g. your commands works:
PUT ISAPI/System/Network/Integrate
also something like GET /ISAPI/System/Serial/ports works works.

It only seems the PTZ, PTZControl etc. is blocked.

Thanks a lot! Texel
 
Hi, I found a solution. It's seems to be very important whether to use PUT or GET for certain commands.

E.g.

GET /ISAPI/PTZCtrl/channels/1 works
PUT /ISAPI/PTZCtrl/channels/1/presets/1/goto works as well now

Thanks a lot.
Texel