Skip to content
/ myip Public

macOS CLI to print public & local IP and DNS information, geolocation, address, map links, and share the information via Messages or Mail

License

Notifications You must be signed in to change notification settings

JayBrown/myip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myip

macOS CLI (shell script) to print public & local IP, network and DNS information, geolocation, address, map links, and share location information via Messages or Mail


myip [--ip=<IP address>] [ARG(s)]

	OPTION
	
	--ip=		:	input your public IP, if it is already known

	OUTPUT ARGUMENTS

	ip		:	public IP only

	net		:	public IPs and related info incl. NAT-PMP
	bt		:	torrent IP address (requires transmission CLI & an IP tracking torrent)
	ether		:	additional local data like network IPs, hostname, MAC addresses, SSID etc.
	dns		:	public & local DNS IPs, local resolvers & related info
	loc		:	coordinates & country of public IPs (only with 'net' or 'dns')
	geo		:	local geolocation (latitude & longitude)
	addr		:	local geolocation (address)
	map		:	print URLs to open local geolocation in Apple Maps, OSM or Google Maps

	all		:	all of the above
	
	OTHER ARGUMENTS

	msg		:	share geolocation & address via Apple Messages (requires terminal-share CLI)
	mail		:	share geolocation & address via Apple Mail (requires terminal-share CLI)

	version		:	version number
	help		:	this help document


Optional requisites:

(1) terminal-share: https://github.com/mattt/terminal-share
(2) transmission-cli: https://transmissionbt.com – install manually or with: brew install transmission-cli

Supported tracking torrent available at: https://ipleak.net (manually add with transmission-remote)

About

macOS CLI to print public & local IP and DNS information, geolocation, address, map links, and share the information via Messages or Mail

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages