JPA Desktop APP and Remote MySQL - How To
===

Well, my question might sound ridiculous. But my trouble is, to know the best practice or solution i should use.

I have a swing desktop app, with JPA and MySQL on the same machine. Now i want to take this same application to a network environment with the mySQL on a separate machine.

My options where to user either the ip-address or the machine-name for the host in my persistence.xml. But from your experience what is the best i can use.