GUIDs are unique identifiers for WordPress posts. Changing the GUID can cause issues with apps like RSS readers. But sometimes its OK to change them.
How do you move WordPress to another server? It’s easier that you may think and doesn’t require any programming. You just need to follow a process.