Whoami

From The Socknet

Jump to: navigation, search

The whoami function assists a server behind a NAT router to determine its external IP address.

The whoami function is optional. Queriers should check the functions function to see if it's available.

The whoami function is accessed with a GET.

GET whoami

->
{ ip_address: "209.52.401.11"
}


Considerations

Some servers will limit access to the whoami function based on load. Just because it doesn't work at one time, doesn't mean it won't work later.

Be careful who you trust with the whoami function. Use a trusted party or use several sources that do not appear to be directly associated, and verify that all of them return the same data.

If a server's external IP address changes, it should be used to make two updates:

  • The agents list - easy
  • The DNS - not always easy, often done by an administrator

There is no way to ensure that a system unrelated to the Socknet will not access this function. What would "unrelated" even mean?

Personal tools