Local host API automate

When we are using APIs using a local host to develop mobile apps, we need to change the IP address for wireless connections. This is a manual process to find the current IP address. My idea is to automate this to get the current IP address through postman.

I need to execute this idea for GSoC. I am a 3rd-year undergraduate. You can know more about me through my portfolio: Ishan Randika (jayaweerageishanrandika.web.app) . Can any one help me to execute this?