Functions - whoami

From The Socknet

Jump to: navigation, search

whoami can be used when a requester wants to know what IP address the rest of the world believes it has.

Specification

GET whoami

->
{ ip_address: "209.52.401.11"
}

whoami may be called via GET or POST, though it is unlikely that a from field can be provided if this function needs to be called (that is, the sender is not able to create an agents field for IP Verification without already knowing the information that is returned by this function).

The response has an ip_address field holding a string with an IPv4 address.

More fields may be added for other types of networks, such as IPv6.

Support

This function is optional for Services and Providers.

Further Reading

Personal tools