Get socket host from location origin instead of hard-coded one