Windows 10: IP Geolocation via Command Prompt\Powershell

Discus and support IP Geolocation via Command Prompt\Powershell in Windows 10 Network and Sharing to solve the problem; Hello, I'm looking for a way to check PC's IP Geolocation by using command prompt or powershell (no scripts). I hope there are some experts here... Discussion in 'Windows 10 Network and Sharing' started by JustDev, Sep 1, 2016.

  1. JustDev Win User

    IP Geolocation via Command Prompt\Powershell


    Hello,

    I'm looking for a way to check PC's IP Geolocation by using command prompt or powershell (no scripts).
    I hope there are some experts here who can help me out. I have found a very easy to do it on UNIX systems but my main machines will be Windows 7/8.1/10 based.

    Basically I need something equivalent to this: (This is via Terminal on MacOS)
    curl ipinfo.io
    {
    "ip": "793.452.666.321",
    "hostname": "athedsl-413388.home.otenet.gr",
    "city": "Athens",
    "region": "Attica",
    "country": "GR",
    "org": "AS6799 Ote SA (Hellenic Telecommunications Organisation)"


    Any suggestions? *sarc

    :)
     
    JustDev, Sep 1, 2016
    #1

  2. IP Geolocation via Command Prompt

    Hello,

    I suggest you to post the same query in Microsoft TechNet forum for further assistance with this issue.

    Kindly post your query in the link below:

    Technet forums - Windows 10 IT Pro

    Please get back to us for further assistance. We will be happy to help.
     
    Anju Thekkethil, Sep 1, 2016
    #2
  3. IP Geolocation via Command Prompt

    Hello,

    First of all, please I beg you, no canned answers from Microsoft. Please.

    Now to my question - I am look for a way to check IP address geolocation using nothing by internal tools of the operating system.

    Any experts who can help me out?

    The reason behind it is that I cannot use websites like "findmyipaddress" and such on client's computers.

    Cheers.
     
    Urso_Polar, Sep 1, 2016
    #3
  4. Tanuki360 Win User

    IP Geolocation via Command Prompt\Powershell

    PowerShell is not as different as you might think. That command "curl ipinfo.io" works right out of the box in PowerShell thanks to an alias command that maps to curl. PowerShell has several aliases for native commands to help make learning PowerShell easier for beginners. Curl is an alias for the PowerShell command Invoke-WebRequest. You can also use "iwr" as an alias. Now that PowerShell is available on Linux, though I would expect that the "curl" alias will be removed at some point so it is better to use the native syntax.

    If you want it to match the output of your example, you need to expand the content property of the returned object...

    curl ipinfo.io | select -ExpandProperty content

    This will return the exact same result as your example.
     
    Tanuki360, Sep 1, 2016
    #4
  5. JustDev Win User
    Tanuki, you have no idea how happy I am to finally get an answer, thank you so so so so much!!!!!!!!!*Smile*Smile*Smile*Smile*Smile*Smile
     
    JustDev, Apr 5, 2018
    #5
Thema:

IP Geolocation via Command Prompt\Powershell

Loading...
  1. IP Geolocation via Command Prompt\Powershell - Similar Threads - Geolocation via Command

  2. My IP address shows wrong geolocation in Microsoft applications

    in Windows 10 Gaming
    My IP address shows wrong geolocation in Microsoft applications: My Office 365 business applications do not allow me to log in from the Internet connection at home, they show me connected with my IP address from somewhere in the United States and due to cybersecurity policies they prevent the connection from outside Colombia, with the...
  3. My IP address shows wrong geolocation in Microsoft applications

    in Windows 10 Software and Apps
    My IP address shows wrong geolocation in Microsoft applications: My Office 365 business applications do not allow me to log in from the Internet connection at home, they show me connected with my IP address from somewhere in the United States and due to cybersecurity policies they prevent the connection from outside Colombia, with the...
  4. Windows 11 incorrect Geolocation - NOT IP related!!

    in Windows 10 Gaming
    Windows 11 incorrect Geolocation - NOT IP related!!: We manage Intune devices, and obviously we need an accurate location for find my PC.We are based within Lincolnshire, UKWe are getting a Random location in the USA - "Windsor" not to be confused with Windsor UK.The issue is not IP related, if I search our IP it shows the...
  5. Windows 11 incorrect Geolocation - NOT IP related!!

    in Windows 10 Software and Apps
    Windows 11 incorrect Geolocation - NOT IP related!!: We manage Intune devices, and obviously we need an accurate location for find my PC.We are based within Lincolnshire, UKWe are getting a Random location in the USA - "Windsor" not to be confused with Windsor UK.The issue is not IP related, if I search our IP it shows the...
  6. Are Windows 10 & 11 blocking my IP geolocation?

    in Windows 10 Gaming
    Are Windows 10 & 11 blocking my IP geolocation?: I have several Windows weather apps including Radarscope and Strawberry Weather. Problem: About two months ago both of these Windows apps started reporting my geolocation IP address as being 50 miles south of my actual location. Meanwhile, these same apps on my iOS devices...
  7. Are Windows 10 & 11 blocking my IP geolocation?

    in Windows 10 Software and Apps
    Are Windows 10 & 11 blocking my IP geolocation?: I have several Windows weather apps including Radarscope and Strawberry Weather. Problem: About two months ago both of these Windows apps started reporting my geolocation IP address as being 50 miles south of my actual location. Meanwhile, these same apps on my iOS devices...
  8. Geolocation plugins

    in Windows 10 Customization
    Geolocation plugins: I have installed multiple for online casinos but they still won't allow me to play. How can I enable them to work correctly? https://answers.microsoft.com/en-us/windows/forum/all/geolocation-plugins/f9366408-41fa-4c36-9180-b2296a977398
  9. Geolocation issue

    in Windows 10 Customization
    Geolocation issue: I have purchased a new computer and noticed that it does not find my exact geolocation. For instance, in the Weather app, it shows a city but not an exact place where I am. I need your help. Thank you...
  10. Geolocation Issues

    in Windows 10 Ask Insider
    Geolocation Issues: I moved from Pennsylvania to New York 2 months ago. Geolocation is incorrect in Weather app, Maps app, Firefox desktop on Windows 10, it gives off my OLD address. Random sites that ask for location that is. Clean Windows 10 Install Clean Firefox Install Not behind VPN...