Page 1 of 1

D7500 et al - DHCP address change

PostPosted: Sun Jun 16, 2019 9:54 am
by konrad

Re: D7500 et al - DHCP address change

PostPosted: Sun Jun 16, 2019 1:51 pm
by Simeon
So you can build a patch for changing the network to a new fixed value, (ether the 10/24 or 172.16/20) and assume the _wma... is the third file in the package it should look like:
the first parameter in the Patch object is the file thus should be 2, then file offset (thus looks like 0x43f11) and then the stream of old bytes and new bytes

or you could split the 192.168.x.x network and put the camera in a higher sub block, and change your home network to also be a sub block of 192.168

Re: D7500 et al - DHCP address change

PostPosted: Thu Aug 15, 2019 12:03 pm
by MountainMike

I find myself in the same predicament as Konrad: My D7500 and home network both share, and the 7500 networking settings cannot be changed with existing tools. In order to use tools such as qDslrDashboard I have to disconnect from my home network in order to connect to the camera. Tolerable, but not very elegant.

May I humbly ask if any development is planned for the patch Konrad proposed? Simply changing the camera's DHCP server address to and the client address to would do the job.

I ran my *.bin file through the patch tool, just to see if anything popped up, and nothing did. I also spent several hours trying to understand and learn the hacking process (excellent documentation on this, by the way!), but I just don't have the aptitude or coding skills necessary to manipulate the firmware. I'm happy to do it, I just can't quite sort out exactly how to do what needs to be done. :think:

I understand the Nikon Hacker team has a life and families (which I wholeheartedly support!), but if a little time creeps into your schedule, a look at this patch request would be much appreciated. :text-thankyoublue: in advance.

Re: D7500 et al - DHCP address change

PostPosted: Wed Aug 21, 2019 12:24 pm
by konrad
Hi Simeon,
thanks for the advice. As I said the D7500 looks to follow the way Z6/Z7 does for there firmware, so there is a 0x20 byte header. The other cameras patched here do not have this offset. So providing a patch cs does not look to be a big issue, but rebuilding the firmware bin is something I do not know how to archive. What are these 0x20 bytes ? Possible to omit? A signature? How to create?
Is there any experience in repackaging Z6/Z7 fw?

Looking at Nikon-Patch makes me think that I would have to build the environment for test first on a local machine or is there a way how I can apply a custom patch file like for my experiments with the Nikon-hacker site?

Re: D7500 et al - DHCP address change

PostPosted: Fri Aug 23, 2019 8:07 am
by MountainMike

I just discovered that the Nikon WMU mobile App can actually change the IP addressing of the Nikon camera's wireless network--no FW patch needed. (Proven on a Nikon D7500 and the Android version of the WMU app.) The curious thing is that the camera won't report that the IP has changed (in the settings menu), but it indeed will have changed in the camera's OS.

This is what I did...

Change Camera's IP Address:
1. Use the Nikon WMU Android app
2. Connect to the camera over the phone's and camera's WiFi (remember to turn on the WiFi connection in the camera)
3. Tap the settings icon (the gear) in WMU
4. Tap Wireless Mobile Adapter settings
5. Tap Advanced settings
6. Tap DHCP server IP address and change it (tap Save)
7. Click DHCP client IP address and change it to (tap Save)
8. Exit the settings menu back to the main WMU home screen

Close WiFi connection on the camera and power it off. After a minute or two, power on the camera. Check the WiFi Current settings on the camera...note that it still says it is using Now, enable the WiFi connection on the camera and connect your computer to the camera's WiFi. Open your computer-based app of choice, say, qDslrDashboard and connect to the camera: Change qDSLR's connection IP to, by click-and-holding the wireless Nikon icon in the qDSLR app. Boom, connecting to the camera on!

I'm interested to hear if this same thing works on your camera.

Even though this didn't require a patched FW by NikonHacker, THANKS to you guys for all you do!

Re: D7500 et al - DHCP address change

PostPosted: Fri Aug 23, 2019 11:13 am
by konrad
great job, immediately tried ...

iPhone7 IOS 12.4 , version (german version)
When going to the WMA settings, extended settings, I got a notice like "for settings please use the menues on camera" ... disappointing

Rereading your notes again, you say Android, hmmm... Picked my good old Asus Zenfone2 Android 6.0.1 , I installed the Nikon WMU app, version and, a big applause to Mountain Mike, here I get offered the setting for DHCP server and for DHCP client address. I tried a first time ... it did not work. Tried a second time and it ... worked. Difference was that I go back from the setting lower menues by pressing back button after save intead of abort from here, then I got a next "save" dialog which looks to do the actual transfer including a restart of the adapter. After next reconnection sill shows the changed addresses. The first try was also with a 192.168.12.x address set, whereas the second test was using 192.168.2.x like in your example.

As I'm a suspicious software guy, the GUI may tell something, I went for the WiFi settings in Android and there the details of the connection showed for the Android phone. OK curious, I tried now to connect the iPhone also to exclude any inner setting of the Android device and, still surprising, now the iPhone got also an address (the dhcp server in the camera seems to be able to handle more addresses).

Now I'm doing a final test for today switch of Android phone and camera, removed the battery from camera, waiting some time ...
Now the thing back, and even more surprise, even after the power cycle the camera is still distributing 192.168.2.x adresses.

A next test, now I applied 192.168.12.x adresses in WMU extended settings, using the "back" Android button, this also got installed and is working now.
So I think we can assume the issue about the DHCP address to be solved at least for D7500, other people should check the procedure for their camera where they cannot change the address from the camera menus. iPhone folks may have to wait for a next version?

A few further notes:
1) My Zenfone2 is rooted, but I would not expect an influence from that on the procedure.

2) About the extra 0x20 bytes in the the firmware file. It looks to me that Nikon has started to use secure boot functionality together with signing the firmware files. In this context the 0x20 bytes could be a SHA256 hash used by the flash loader to checker whether the firmware is signed correctly. In the firmware file I saw some FirmwareChk strings, so could be that the check is only from the running firmware to check the new firmware file. If Nikon did correctly protecting theier cameras then they will have established a chain of trust from a certificate in the rom bootloader which the checks the next step in the load on boot an so on. Then it would be very hard to ceate a patched firmware file as this includes rebuilding the signature and this would involve the private part of the key only Nikon should know. As this is common industry practice I expect this to be likely.

Re: D7500 et al - DHCP address change

PostPosted: Fri Aug 23, 2019 11:33 am
by konrad
Checked now from my laptop, wired LAN 192.168.1.x and wirelessly connected to AP on camera using 192.168.12.x network, this works with a two face IP access. I still can access internet via the wired LAN and look to my camera the same time. Windows takes care to select the right link to internet.
I checked quickly with qdslrdashboard and digicamcontrol, both look to work fine.

Let's wait what others report who got the free WiFi update this year.

I forgot to confirm in my previous note that the changes do not appear in the menues on the camera, there still 192.168.1.x is shown, even after battery re-insertion. This is not true, look at the IP settings on your phone/tab/PC to confirm the change.

Btw. some months back I had a talk to Nikon Customer service on setting the DHCP addresses and they were not even aware of the WiFi-only connection capability of the camera, they also told that DHCP change would not be possible.

Re: D7500 et al - DHCP address change

PostPosted: Tue Aug 27, 2019 3:38 pm
by MountainMike

Glad to hear this procedure worked for you! Just for the record, my Android phone is not rooted, so root state doesn't appear to be a factor in this procedure working.

It is rather strange that the camera won't report the camera's actual IP address, and that only the Android version of the WMU app can change the DHCP server. But I'm not complaining about the functionality. It works. I'm happy. :)

Your work on the camera's FW is interesting. You are far better at analyzing and understanding what is (or might be) implemented in the camera's firmware. Keep up the good work, my friend!