Using Alfred to Retrieve Local Network Information

Using Alfred to Retrieve Local Network Information

12月 21, 2024 · 1 分钟阅读时长 · 68 字 · -阅读 -评论

To quickly access my network proxy information and public IP details, I created a workflow for convenience.

Screenshots

https://static.1991421.cn/2024/2024-12-21-134418.png

Download Link

Implementation

The workflow relies on the following commands to retrieve network information:

  1. Retrieve network proxy info:

    networksetup -getsocksfirewallproxy "Wi-Fi"
    networksetup -getwebproxy "Wi-Fi"
    networksetup -getsecurewebproxy "Wi-Fi"
    
  2. Retrieve public IP info:

    curl ifconfig.me
    

At the end

With this workflow, local network information can be accessed quickly and efficiently.

Docs

Alan H
Authors
开发者,数码产品爱好者,喜欢折腾,喜欢分享,喜欢开源