Skip to main content

A CLI tool to expose WSL ports to the LAN

Project description

wsl-expose

A convenient CLI tool to expose Windows Subsystem for Linux (WSL) ports to the Local Area Network (LAN) by automatically configuring Windows netsh portproxy and Firewall rules.

Installation

Ensure you are in the project root directory where pyproject.toml is located, then run:

uv tool install .

Usage

Note: You must run this command from an Administrator terminal (e.g., PowerShell as Administrator) to add or remove ports, because Windows netsh and firewall configurations require elevated privileges.

Expose a Port

To expose a port (e.g., 8080) running inside your WSL instance to your Windows host's LAN IP:

wsl-expose add 8080

Remove an Exposed Port

To remove the port mapping and firewall rule:

wsl-expose remove 8080

List Exposed Ports

To see all currently configured WSL port proxies:

wsl-expose list

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsl_expose-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wsl_expose-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file wsl_expose-0.1.1.tar.gz.

File metadata

  • Download URL: wsl_expose-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for wsl_expose-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3ca8035ad9658956843b2f7003631a896591f14a80983737de0953f596daef1f
MD5 88d6b24455a6dae0d4d94f84c40afe1b
BLAKE2b-256 09ee40e0e0f4988af957d4ea5e76518992aa1457b1cb113531c607064d209b10

See more details on using hashes here.

File details

Details for the file wsl_expose-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wsl_expose-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for wsl_expose-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d3ba691e4b9d6bc4f5e2977c66b69be57672eac7240eb79eb2c6e79067a072de
MD5 70c6cd1e5d5cd5d47bdbfe94546f1abc
BLAKE2b-256 1e28233810a1f3210b9e95f13143918a1333795aa64cb1609a7629177219bd64

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page