.\" Generated by kramdown-man 1.0.1 .\" https://github.com/postmodern/kramdown-man#readme .TH ronin-ip 1 "2023-02-01" Ronin "User Manuals" .SH NAME .PP ronin\-ip \- Queries or processes IP addresses .SH SYNOPSIS .PP \fBronin ip\fR \[lB]\fIoptions\fP\[rB] \[lB]\fIIP\fP \.\.\.\[rB] .SH DESCRIPTION .PP Queries or processes IP addresses\. .SH ARGUMENTS .TP \fIIP\fP An IP address argument to process\. .SH OPTIONS .TP \fB\-f\fR, \fB\-\-file\fR \fIFILE\fP The optional file to read values from\. .TP \fB\-P\fR, \fB\-\-public\fR Gets the public IP address\. .TP \fB\-L\fR, \fB\-\-local\fR Gets the local IP address\. .TP \fB\-r\fR, \fB\-\-reverse\fR Prints the IP address in reverse name format\. .TP \fB\-X\fR, \fB\-\-hex\fR Converts the IP address to hexadecimal format\. .TP \fB\-D\fR, \fB\-\-decimal\fR Converts the IP address to decimal format\. .TP \fB\-O\fR, \fB\-\-octal\fR Converts the IP address to octal format\. .TP \fB\-B\fR, \fB\-\-binary\fR Converts the IP address to binary format\. .TP \fB\-\-hex\-octet\fR Converts the IP address to hexadecimal format by octet .TP \fB\-\-octal\-octet\fR Converts the IP address to octal format by octet .TP \fB\-\-ipv6\-compat\fR Converts the IPv4 address to an IPv6 compatible address .TP \fB\-\-ipv6\-expanded\fR Expands a shortened or compressed IPv6 address .TP \fB\-C\fR, \fB\-\-cidr\fR \fINETMASK\fP Converts the IP address into a CIDR range\. .TP \fB\-H\fR, \fB\-\-host\fR Converts the IP address to a host name\. .TP \fB\-p\fR, \fB\-\-port\fR \fIPORT\fP Appends the port number to each IP\. .TP \fB\-U\fR, \fB\-\-uri\fR Converts the IP address into a URI\. .TP \fB\-\-uri\-scheme\fR \fISCHEME\fP The scheme for the URI\. Defaults to \fBhttp\fR if not given\. .TP \fB\-\-uri\-port\fR \fIPORT\fP The port for the URI\. .TP \fB\-\-uri\-path\fR \[sl]\fIPATH\fP The absolute path for the URI\. Defaults to \fB\[sl]\fR if not given\. .TP \fB\-\-uri\-query\fR \fISTRING\fP The query string for the URI\. .TP \fB\-\-http\fR Converts the IP address into a http:\[sl]\[sl] URI\. .TP \fB\-\-https\fR Converts the IP address into a https:\[sl]\[sl] URI\. .TP \fB\-h\fR, \fB\-\-help\fR Print help information\. .SH EXAMPLES .PP Gets the machine\[cq]s public IP address: .PP .RS 4 .EX \[Do] ronin ip \-\-public .EE .RE .PP Gets the machine\[cq]s local network IP address: .PP .RS 4 .EX \[Do] ronin ip \-\-local .EE .RE .PP Converts the IP address(es) into unsigned integers: .PP .RS 4 .EX \[Do] ronin ip \-\-decimal 1\.2\.3\.4 16909060 .EE .RE .PP Converts the IP address(es) into CIDR ranges: .PP .RS 4 .EX \[Do] ronin ip \-\-cidr 20 1\.2\.3\.4 1\.2\.0\.0\[sl]20 .EE .RE .PP Converts the IP address(es) into host names: .PP .RS 4 .EX \[Do] ronin ip \-\-host 192\.30\.255\.113 lb\-192\-30\-255\-113\-sea\.github\.com .EE .RE .SH AUTHOR .PP Postmodern .MT postmodern\.mod3\[at]gmail\.com .ME