---
title: "Discussion on \"windows 一键查看本机内网/外网IP\" | Hashnode"
description: "Discussion on \"windows 一键查看本机内网/外网IP\". 工作室有同事需要，一个简单的小脚本。测试机是win8系统，理论上以下代码生成的小工具应该可以在Windows 7、Windows 10和Windows 11上运行。\nSet oShell = CreateObject(\"WScript.Shell\")\nSet objHTTP = CreateObject(\"WinHttp.WinHttpRequest.5.1\")\nstrComputer = \".\"\n\n' Get public IP address\nobjHTTP.Open \"GET\", \"htt..."
url: "https://hashnode.com/posts/windows-onekey-check-ip/6454a5c78a92fdd43bf41981"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [windows 一键查看本机内网/外网IP](https://199466.xyz/windows-onekey-check-ip?utm_source=hashnode&utm_medium=feed)

工作室有同事需要，一个简单的小脚本。测试机是win8系统，理论上以下代码生成的小工具应该可以在Windows 7、Windows 10和Windows 11上运行。 Set oShell = CreateObject("WScript.Shell") Set objHTTP = CreateObject("WinHttp.WinHttpRequest.5.1") strComputer = "." ' Get public IP address objHTTP.Open "GET", "htt...

May 5, 2023 · 1 min read · 199466.xyz  
Read the article

-   [#windows](https://hashnode.com/tag/windows)

## Written by

[kkk](https://hashnode.com/@weblog)

@weblog

  
[View profile](https://hashnode.com/@weblog)

KK‘s weblog

不许联网

## Responses 1

Markdown supported · ⌘↵ to post

[永](https://hashnode.com/@JASONDAHUZI)

[Mar 19, 2024](https://hashnode.com/posts/windows-onekey-check-ip/6454a5c78a92fdd43bf41981/comment/65f8dca6b32517d01954a43c)

大牛，太感谢了。
