ant-thomas / zsgx1hacks

Hacks for ZS-GX1 IP Camera and various Goke GK7102 based IP Cameras
369 stars 101 forks source link

Setup static IP #86

Open edsub opened 6 years ago

edsub commented 6 years ago

Did anyone succeed in setting up a static IP for this cam?

jumblies commented 6 years ago

I can't address your question specifically, but could u assign in the router? On a lot of router FW, you can bind Mac and IP. Thanks for your work. Looking forward to trying it out

edsub commented 6 years ago

The 4G modem/router the camera will be linked to, does not support forcing a fixed ip based om mac. Hence my question.....

jumblies commented 6 years ago

Sorry for the unhelpful answer.

I couldn't find dhcp on the device but there is a way to manually set the IP in the link below. That file is writeable so it could work to set it manually.
/etc/network/interfaces https://ubuntuforums.org/showthread.php?t=1426270

edsub commented 6 years ago

I KNOW there are ways to do this on various "Linux flavours" (like Ubuntu as explained in the link you provided). But did you test that the description in the link you provided works on these camera's, especially as the network is started by the p2pcam program.....

gd-99 commented 5 years ago

Bit dated now, but if this is still of interest, I have just posted a possible solution in issue #104

The bit that worked for me is setting up a cls.conf file: cls.conf contents

[cls_server]
ip = 192.168.1.xx
gw = 192.168.1.1
netmask = 255.255.255.0
dns = 208.67.222.222
ssid = <your_ssid>
passwd = <your_ssid_password>

This example fixes the IP address for the wifi. To set a fixed IP address for eth0 add the line: fixip = eth0

edsub commented 5 years ago

Cool, coincidently I found the same today, but it does not seem to work on my DG-W01F Put the cls.conf in the /home folder, is that correct? Will try to figure out,.

gd-99 commented 5 years ago

@edsub I put my cls.conf in the root directory of the sd-card - alongside the debug_cmd.sh file and the hack directory.