Yes, you can absolutely connect to a MySQL database server from a machine outside of the local network. This is a common scenario for
enriching data, development, testing, and production environments. However, establishing a secure connection is crucial to protect your database from unauthorized access.
If you're specifically referring to Bloc, a web framework, it doesn't inherently restrict database access to local machines. As long as you follow the secure connection steps above, you can connect to a MySQL database from an external host using Bloc's database connection methods.