net

net shows the network interfaces visible to PHP, including state, IPv4/IPv6 addresses, masks, broadcast addresses and peer information when the platform exposes them.

NetworkVersion 1.1.6Stable
lil-terminal

Overview

Use net for Server network interfaces and addresses. Common operations stay short; specialized forms add detail only when needed, so repeated work remains easy to understand, repeat and place in lil-terminal scripts.

A server interface is not necessarily its public address

Shared hosting commonly sits behind NAT, proxies or provider networking, so net may show private or internal interfaces. Compare it with ip server, DNS and remote checks when you need to understand how the host is actually exposed.

Syntax

lil-terminal
net [interface] [-4|-6|-l]

Reference

net

show available network interfaces and addresses

net <interface>

show one interface

-4

show IPv4 addresses only

-6

show IPv6 addresses only

-l

show interface names and status only

Practical workflow

Run net -l first to see interface names and their status. Run net for details, net -4 or net -6 to filter shown addresses, and net <interface> to inspect just one interface. An interface named lo is common but not guaranteed; on some shared hosts PHP exposes only a fallback server address, or no interfaces at all.

Limits and safety

Names, IP addresses, MAC addresses and the result of net -l are environment-specific; a public IP shown by an external service is not necessarily an interface address. -l suppresses address details even with -4 or -6. Do not publish real private network information from a production server. The examples below are a fictional, clearly labelled interface snapshot, not data from your server.

Clear option errors

net now reports unknown flags instead of treating them as network interface names.

Interactive sandbox preview

Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.

List interfaces, then inspect IPv4

Install and manage

Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.

Base and Minimum are two packages of the same current module release, not separate command versions.

Base package

Install the complete package with local command reference and every published mode.

install net
Minimum package

Install the reduced package. Local reference is omitted; help <cmd> -i opens the current server reference.

install net -m
Exact public version

Install exactly this published version.

install net -v 1.1.6
Check or update

Ask upgrade to check compatibility and replace the installed block only when needed.

upgrade net
Remove module

Remove the extension block while leaving the core and unrelated modules intact.

install net -u

Examples

Examples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.

List interfaces, then inspect IPv4
net
Illustrative network snapshot — not a live request
Interface  lo
Status     up
IPv4       127.0.0.1/8
IPv6       ::1/128

Interface  eth0
Status     up
IPv4       192.0.2.10/24
Mask       255.255.255.0
Show interface names and status only
net -l
Illustrative network snapshot — not a live request
Interface  lo
Status     up

Interface  eth0
Status     up
Show IPv4 addresses only
net -4
Illustrative network snapshot — not a live request
Interface  lo
Status     up
IPv4       127.0.0.1/8

Interface  eth0
Status     up
IPv4       192.0.2.10/24
Show IPv6 addresses only
net -6
Illustrative network snapshot — not a live request
Interface  lo
Status     up
IPv6       ::1/128

Interface  eth0
Status     up
Address    -
Show one interface
net lo
Illustrative network snapshot — not a live request
Interface  lo
Status     up
IPv4       127.0.0.1/8
IPv6       ::1/128
Handle an unknown interface
net lo -4
Illustrative network snapshot — not a live request
Interface  lo
Status     up
IPv4       127.0.0.1/8
Show IPv6 addresses only
net lo -6
Illustrative network snapshot — not a live request
Interface  lo
Status     up
IPv6       ::1/128
Show interface names and status only
net lo -l
Illustrative network snapshot — not a live request
Interface  lo
Status     up
Show interface names and status only
net -l -4
Illustrative network snapshot — not a live request
Interface  lo
Status     up

Interface  eth0
Status     up
Show IPv4 addresses only
net -4 -6
Illustrative network snapshot — not a live request
Choose either IPv4 or IPv6
Net · -what
net -what
Illustrative network snapshot — not a live request
Unknown option: -what
Show one interface
net missing0
Illustrative network snapshot — not a live request
Interface not found
Show one interface
net lo eth0
Illustrative network snapshot — not a live request
?

Related documentation

Current public release

v1.1.62026-10-31

Clear option errors

net now reports unknown flags instead of treating them as network interface names.