Xiaomi Gateway offline even with port open

I have a Gateway V3 that I had previously connected to OH. I moved my IoT network to a different subnet so I had to reset the gateway to join the new network.

Right now I am able to ping the gateway from OH and nmap shows that port 9898 is open. When I do a tcpdump of, I see UDP traffic from the gateway IP. In Mi Home app, the gateway is online and child devices are all connected.

Restarting does not bring the gateway back. Firmware version is 161.

How do I fix this?