Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.25 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.25 KB

mobile-hotspot

A console application to create a mobile hotspot on Windows 10.

Syntax: mobilehotspot.exe SSID PASSPHRASE

A mobile hotspot will be created automatically using the best available connection profile, and will remain active until the application is closed.

Output format

The app can be called from automated scripts, and the output is designed to be easily parseable. Example output is provided here:

> mobilehotspot.exe my-ssid my-passphrase
Starting hotspot ... press "q" and Enter to quit
CON | 01:23:45:67:89:ab | DeviceName | 192.168.1.2
DIS | 01:23:45:67:89:ab | DeviceName | 192.168.1.2
Stopping hotspot ...

The start and end messages are written to stderr, the lines in the middle are written to stdout.

The general output format looks like this:

<code> | <mac> | <host1>[ | <host2>] ...

Where

  • <code> is CON (client connected) or DIS (client disconnected)
  • <mac> is the clients MAC address
  • <host1> ... <hostn> are the client's hostnames (usually a local IP address and a device name)

Connected/Disconnected events are polled every 10 seconds.

Closing the app

To close the app, press "q" followed by Enter. To close the app from an automated script or program, simply write "q" to the standard input stream.