Skip to main content

Network

peer-ip-address

| peer-ip-address("namespace/runnable-path", String)

Returns external IP of the node that the runnable is running on.

get-hostname, get-container-ip

| get-hostname(runnable-path String, container-name String) | (container-hostname String)

Finds a container by its runnable-path and name container-name and returns its hostname container-hostname on the overlay DNS or the bridge network as a fallback.

ip-address-public

| ip-address-public | (ip String)

Returns current public ip of the node it was executed on. The address is obtained by calling http://ipecho.net/plain.

Rate this page