how to get host information