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.5Stable
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

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.5
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 -l | net -4
Interface  lo
Status     up

Interface  eth0
Status     up

Interface  lo
Status     up
IPv4       127.0.0.1/8

Interface  eth0
Status     up
IPv4       192.0.2.10/24
Show one interface
net eth0
Interface  eth0
Status     up
IPv4       192.0.2.10/24
Mask       255.255.255.0
Net · ipv4
net -4
Interface  lo
Status     up
IPv4       127.0.0.1/8

Interface  eth0
Status     up
IPv4       192.0.2.10/24
Net · ipv6
net -6
Interface  lo
Status     up
IPv6       ::1/128

Interface  eth0
Status     up
IPv6       2001:db8::10/64
Net · list
net -l
Interface  lo
Status     up

Interface  eth0
Status     up
Handle an unknown interface
net does-not-exist
Interface not found

Related documentation

Current public release

v1.1.52026-08-13

Compact network flags

Groups IPv4, IPv6 and list modes as options without repeating the command.