the game does have a network function and should work through the web - it works within my own home network - it is ip based. the only major hick-up might be if one/both of you are behind routers. you may need to open/forward the ports in your advanced router settings. the respective port number is - 23301.
if not behind a router, but have the built in firewall protection on, you'll have to do the same thing in the 'sharing' control panel, by going to the firewall tab and adding a new 'service' to the list.
otherwise, enjoy!