Can I make a server /w Hamachi or Tunngle?

Title says it all. Is it actually a way to make online lan server via these 2 programs?

Should work.

Thanks for the fast reply I will try it now