using window.location.hostname as remote Server settings host