the most common command is ipconfig. What ipconfig do is it give your current private IP address that are specific to each adapter on your network.
let get a bit more detail about ip address. An IP address is a unique numerical label assigned to each device connected to the Internet, allowing for identification and communication between devices globally. There are two main types of IP addresses:
IPv4: The most widely used version, which assigns a 32-bit address, allowing for about 4.3 billion unique addresses.
IPv6: The newer version designed to replace IPv4, using 128-bit addresses to support a vastly larger number of unique addresses.
By querying ipinfo.io you would be able to retrieve location-based information such as:
City & Region
Coordinates
ISP / Organization
Timezone
you can then use these co-ordinates and mapp them to google app to get real world location
Understanding IP geolocation is essential in cybersecurity for tasks like incident response, threat intelligence, and network analysis. While IP-based location tracking has its limitations in accuracy, it can be a powerful tool when combined with other investigation methods.