IP Address Lookup is a web app that allows you to search for an IP Address and see its location on Google Maps. It also displays the city, country, zip code, and ISP.
When you first visit the site, it will automatically fetch your current IP Address and display its location on the map. You can also enter an IP Address in the search bar to see specific information of that IP Address.
I wanted to use an IP lookup API to build a simple web app that displays specific information about an IP address. This would be useful for anyone who wants to see the location of a user based on their IP address.
I learned how to work with the Google Maps API to display the location with a marker. One of the challenges I faced was figuring how to submit the form when the page first loads. I achieved this with a useEffect hook that runs a function to submit the form when the page first loads. This allowed me to fetch the user's current IP Address.