I recently started playing around with Visual Studio to develop Windows apps. Mostly for fun but I also have some ideas of apps that I thought would be useful so I built them to help me with some simple tasks that just need to be a bit quicker. This one is called “What's My IP” released on the evening of 2019-12-10.
Because I work in IT/networking I often need to get the public IP of the network I'm sitting behind. Often I do remember the IP's for the main locations in my head, however, I'm not always at those locations and a 2 key shortcut is much quicker than googling “what's my ip” every time I need it.
The app makes a request to a CloudFlare Worker which returns the public IP of the requester origin (you). Then the result is shown in the GUI and copied to the clipboard for use straight away.
The app will run in the Windows tray which allows you to use the keyboard shortcut Win + N to copy the IP to your clipboard at any time within any application.
You can reload the displayed IP by clicking ‘Reload IP’ or copy the current IP shown by clicking on the IP once.
Another way to copy the IP is by right clicking on the tray icon which will bring up a context menu with the IP in the bottom of the list then click on the IP.
If you prefer there is also a console app that can be called from Command Prompt or PowerShell. Once you run WMIP-CLI.exe you'll see the IP returned to the console and also copied to your clipboard automatically.
There isn't really any support for this app as it is very basic and doesn't need much to run other than .NET 4.6.1 installed and an internet connection. That being said if you want to ask me any questions or have any feedback, feel free to reach out to me on Twitter and I'll try to help you if I can (@crslng).