MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / getAddress

Function getAddress

javascript/selenium-webdriver/net/index.js:66–68  ·  view source on GitHub ↗

* Retrieves the external IP address for this host. * @param {string=} family The IP family to retrieve. Defaults to "IPv4". * @return {(string|undefined)} The IP address or undefined if not available.

(family = 'IPv4')

Source from the content-addressed store, hash-verified

64 * @return {(string|undefined)} The IP address or undefined if not available.
65 */
66function getAddress(family = 'IPv4') {
67 return getIPAddress(false, family)
68}
69
70/**
71 * Retrieves a loopback address for this machine.

Callers

nothing calls this directly

Calls 1

getIPAddressFunction · 0.85

Tested by

no test coverage detected