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

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
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
 

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
Hi, I don’t have the CGI switch in my settings?! There is only the ONVIF...
Any clue what to do?
 

SouthernYankee

IPCT Contributor
Joined
Feb 15, 2018
Messages
5,169
Reaction score
5,319
Location
Houston Tx
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.
 

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
At least on the Hikvision China website it says the model can do CGI.
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
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.
 

vanni93

n3wb
Joined
Apr 18, 2019
Messages
10
Reaction score
0
Location
Italy
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

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
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
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
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

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
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>
 

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
@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!
 

StewartM

Getting the hang of it
Joined
Dec 11, 2017
Messages
260
Reaction score
75
Location
Cape Town
@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!
Great to hear it worked, it slipped my mind to tell you to reboot.
 

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
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
 

Texel

n3wb
Joined
Nov 2, 2014
Messages
10
Reaction score
0
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
 
Top