Getting actual hostname instead of using localhost.