Hello,
depending on server configuration, possibly there is a proxy service running on the server that allows to open local pages for scripts?
Also, you can setup sitemap generator on external site and then create another cron task on main site just to download resulting sitemap files.