@echan00,
I think the reason is that your printer is located on the same network that you're developing on. The main issue over here is the IP Addresses, Most local networks have an IP Address starting with 192.168.XXX.XXX , so your printer which is located on the network also contains the IP address in the same range.
Lets assume : Printer => 192.168.1.100 and Development machine => 192.168.1.45
Since both of these machines are on the same network, they can communicate with each other. As soon as you host your website with a provider, the IP address of the website will no longer be the same as the IP Address of your machine, Let's assume it receives a new IP Address 10.1.57.221.
So now your website is hosted an IP outside your LAN and the printer is still on the LAN. If you can notice the response given when a request to print has been made http://192.168.1.100/StarWebPRNT/SendMessage
from the hosted website, there's a very high chance that you'd end up hitting a 404 or connection timed out instead of the 200 success request.
One way to fix this problem is to host the website on a server in your LAN but provide that computer with a public IP Address so that others can access the website from outside the network. When the request is made to print, it can definitely find the printer in this case.
Another way is to continue hosting with a hosting provider but assign a public IP to the printer so that anyone knowing the IP address can issue a print request to the printer. That way, your website will be able to make a request to the printer for a print.