get host from window (for testing)