Hello
Thank you for your question and reaching out.
This is more related to Network or connections related issue. To to able to use Network printer it should be reachable via LAN or WIFI or VPN connection.
You can also use Azure cloud based printing services.
https://www.microsoft.com/en-in/microsoft-365/windows/universal-print
--If the reply is helpful, please Upvote and Accept as answer--