Get IP from HostName

Get IP from HostName

Hello Everybody!

We all know we can use jQuery ajax functionalities to load json formatted data from remote hosts.

But... is there a way to know from which IP address that data was loaded?

i.e.:

let's say my script, hosted in www.myjquery.com, uses jQuery.getJSON() to load a data object from remote host www.remotehost.com.

Is there a way to know to what IP address was resolved "www.remotehost.com" to load the data from?
Or... is there some other way to be sure the client got to the right server (i.e. local DNS was not tampered with)?

Thank you for your feedback!
Bye!