Test whether connection is local using host header

possible to have local addresses too.