Use the below example code for a webpage. If the camera is behind a NAT device such as a router, the IP must be edited to reflect the public address of the router (IE 24.45.76.223). In this example the camera's IP is 192.168.1.135.
For the DCS-5300/5300W
For the DCS-2000/2100+:
Please understand that this is not a supported feature of the camera, and beyond providing this code, D-Link can not help design a custom webpage.