 Hello and welcome today. We're gonna be looking at seeing where you are based on your IP address Now don't think you're gonna be able to spot on track somebody With their IP address it doesn't work like that when you have somebody's IP address that IP address is linked to the internet service Provider that they are and where that substation is so if you have someone's IP address You can easily find out you know what town they're in their zip code and the general idea of where they are You're not gonna pinpoint where their house is or their devices in most cases normal cases with their IP address, but Let's say you want to see where you are. You're gonna be able to use this to Find out what your IP address is What your relative location is so it's very useful for that and of course this will be your external IP address Not your your local network IP address, so this is a way to get that as well So we're gonna use curl although you can use W get as well So I'm gonna say curl dash s means silent just doesn't give me the output You know downloading information and we're gonna connect to HTTPS colon four slash four slash IP info dot IO That's easy to remember and that's gonna give us some basic JSON outputs I'm gonna do that and I can see my IP address my host name that I'm in the city orange tree And that my region is Florida. I'm in the US my approximate GPS location that The organization my ISP is Comcast communications the zip code and then there's a readme file for the website So that's real easy and of course you can take this information and you can pipe it into something like grep If you want to get the IP you can get the IP that way We can also you know head that you can go through and do stuff like this and I can say cut With a delimiter of this field four probably Yep, so that's how you get an IP address But there's a better way because again like like grepping for ip the ip showed up somewhere else So I can also you know grep for Host and get the host name Are yep and uh or postal code code and get the zip code there But that's using a lot of different commands cut you know normal commands that you have on your system But if you have a clear screen here, uh jq installed, that's a json querying application It's very useful. I can say here. I can say jq and then inside single quotations dot city It will get me the city I can say Postal and it will give me the zip code. I can say Well, I can actually put those two together city comma Dot Postal and it'll give me the city and the postal code, uh, which is very useful. Anyway, that is getting some ip information About your current location. You'll get your ip address, which is useful It's one of many ways to get your external ip address, which is very useful And then it also allows you to basically see your general location And city and all that stuff might be useful if you're logging into a server um Finding out where your server is But I know what you're thinking. You're thinking I know where I am Well, again, it's useful to get your external ip address with a script There's many different websites you can pull that from in different ways But let's say you have someone's ip address and you want to know their approximate location What city they're from, you know, their zip code, you know, that is if they're not using proxy servers, you know But if you have their actual ip address, this could be someone attacking your website or server of some sort and again If they're not using proxies if you have their ip address, you can at least get the general location Well, it's simple enough. Uh, basically the same command curl dash s or you can also again use uh, w get The same website, but then at the end here, you just put in their ip address and you go ahead and hit enter and it will give you their uh, approximate location information So you get again the ip address which you gave but I can see that they're in naples park, florida again That's just an ip address that I kind of made up Uh, uh country code is us the approximate gps location again. That'll give you like basically where their uh Internet provider in this case comcast their substation is which is usually within a couple of miles of their location their postal code And again, you can uh, you know use grep and cut to get information or if you have jq installed I can again say dot city Uh, and I can say dot lock And I should get their city and again their approximate gps location So, uh, again very simple, uh And again, that's ip.info.io You know, uh, this is a company you can go to their website and type in their first information They also, you know have package plans if you want a lot of information I guess obviously if you were to do this in bulk, you'll probably get blocked but Probably don't need to do that if you have an ip address most ip addresses They're in that particular range are going to be near one So you don't need to check every single ip if you know approximately the ip address Just like we know the approximate location Anyway, I thought you might find this useful if you did, uh, please like share subscribe comment check out the description For links to my website films by chris.com. That's chris the k There's also a link to my patreon page patreon.com forward slash malex 1000 And if you can't support me there again like share subscribe comment all that good stuff I thank you for watching and I hope that you have a great day