Skip to content

Network — IP, FQDN, email validation

Source: framework/library/net.sh

REQUIRES INTERNET Fetches the public IP of the local connection via curl.

Return codes

All functions return 0 on success, 1 on failure, 2 on wrong argument count.

net::get_ip

Requires internet

This function makes a network connection.

Get the ip address of the local connection


Validation — no network required

net::is_ip4

Checking if is a valid ipv4 address


net::is_ip6

Checking if is a valid ipv6 address


net::is_fqdn

Checking if is a valid fqdn


net::is_email

Checking if is a valid email address


HTTP timing — REQUIRES INTERNET

net::http::time

Requires internet

This function makes a network connection.

Get timing for a http request