Skip to main content

Mac Internet Sharing Helper

Project description

Mac Internet Sharing

A Python CLI tool to manage internet sharing on macOS.

Installation

pipx install mac-internet-sharing

Usage

The tool provides several commands to manage internet sharing. Here are some common use cases:

Starting Internet Sharing

To share your internet connection on a specified primary interface, use:

sudo mac_internet_sharing configure -n <primary_interface> -u <udid> -u <udid> -s
  • <primary_interface>: Replace with your network interface name (e.g., "Ethernet Adapter (en6)").
  • -u <udid>: Optionally specify one or more device UDIDs.
  • -s: Automatically start sharing after configuration.

Note: Newly connected devices after the initial setup are not added automatically you will need to reconfigure.

Toggling Internet Sharing

Manage the sharing state with the following commands:

  • Turn Sharing Off:

    sudo mac_internet_sharing off
    
  • Turn Sharing On:

    sudo mac_internet_sharing on
    

Contributing

Contributions, bug reports, and feature requests are welcome! Feel free to open issues or submit pull requests.

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

mac_internet_sharing-0.0.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

mac_internet_sharing-0.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file mac_internet_sharing-0.0.1.tar.gz.

File metadata

  • Download URL: mac_internet_sharing-0.0.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for mac_internet_sharing-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0f9b86c673e5c55b17875f12f8ddcf90a1f773417f0989ddb8723c536abe442e
MD5 b94e70cb40c58e9551f35e9da2eadc33
BLAKE2b-256 2051686727156ba4f0484e81336c07f600e5e07fe5fe3531821ec099329345b2

See more details on using hashes here.

File details

Details for the file mac_internet_sharing-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mac_internet_sharing-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 434e167c5a9f5c8829074fd09145daea47513cd2163e72f24383e6a0993fbbc5
MD5 125e13fbd2f7a22c87f1585d3765bfb6
BLAKE2b-256 3ba8df0803761e2fc79e3d5fff5ff15f273c14fe97827cd9be221e4137f5cbe5

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