Setup:
I have master repo on Windows machine and a clone on another windows machine. Inside my update hook, I have added ipconfig>
Looks like we could find the reason. I had used file:// protocol to create a clone. When my colleague attempted with SSH, server IP was printed out as expected.