Using Alfred to Retrieve Local Network Information

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:

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

    1
    curl ifconfig.me

At the end

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

Docs