Keep-Alive handling for localhost