Then why did you not state that ;-)
You cannot get the (necessary) correct IP, cause again the NAV tier does not know what you have put in your DNS, you the need to query the DNS server
But the host name NAV know can be found in session table:
For help, do not use PM, use forum instead, perhaps other people have the same question, or better answers.
Answers
You can get machine name and info, but the server does not know that you have setup in your DNS server.
You cannot get the (necessary) correct IP, cause again the NAV tier does not know what you have put in your DNS, you the need to query the DNS server
But the host name NAV know can be found in session table: