If you use the Steam version then you'll be able to play multiplayer by using the Steam network instead of using an IP adress. If you don't wanna play on the Steam version then I think you should be able to use something like Hamachi to emulate an IP adress in a "closed" network that you share with your friends.