.Dd 2026-06-02 .de oit .It \\$* .. .de obi .Bl -\\$1 -compact .shift .oit \\$* .. .de obe .obi \\$* .El .. .de obd .Bd -literal -compact \\$* .. .de obc .Bl -column \\$* .. .Dt NETWORK oh .Os .Nm network .Nd tools .Sh INFO Get network information using ifconfig (part of the package net-tools which may need to be installed) or ip. .Dl sudo ifconfig -a .Dl sudo ip add .Sh Local ip .obd # ifconfig -a # ip add .Ed .Sh Public IP .Ss URLS The following URLs work on the command line. .obc .It Lk https://icanhazip.com/ .It Lk https://ipecho.io/plain .It Lk https://ifconfig.co/ip .It Lk https://ifconfig.me/ip .El .Ss Examples .obd $ curl https://icanhazip.com/ $ curl https://ipecho.io/plain; echo $ wget -qO - ifconfig.co/ip $ lynx -dump ifconfig.me/ip; echo .Ed .Sh CURL .Sh Options .obc _h__accept_language__ desc .It -s Ta | silent. .It -4 Ta | use ipv4. .It -6 Ta | use ipv6. .It -L Ta | if URL has been moved, request the new location. .It -o Ta | output file. .It --proxy Ta | set proxy Li --proxy PROTOCOL://IP[:PORT] .It --socks5 Ta | set socks5 proxy Li --socks5 IP[:PORT] .It -H 'Accept-Language: LC' Ta | set accept language for site to LC, eg.: Li -H 'Accept-Language: es' .El .Sh TODO .obc .It - Translate to Spanish. .El .Sh HISTORY .obc _______ .It 2026-06-02 Ta : Created. .El .Sh AUTHORS .An -nosplit .Xr ohazot oh | .Xr about oh | .Lk https://ohazot.com ohazot.com .Aq Mt admin@ohazot.com