tags:

views:

30

answers:

1

what is the difference between these two variables?

REMOTE_HOST and REMOTE_ADDR

+1  A: 

REMOTE_HOST pertains to the hostname of the server. REMOTE_ADDR refers to the IP address of the server.

There would be times when the hostname is unresolvable so the REMOTE_HOST will return the REMOTE_ADDR or the IP address instead.

Ruel

related questions