you would need to get the source code, make any modifications needed for MP, compile it, and you're done(don't ask me how cause i dont know).
for about the way it works, i suggest you make a LOCAL LAN based MP first(it's easier) and use programs such as Hamachi to make it online
anyway, good luck