The IP4 address is only valid in your local segment and not unique beyond that. Plus you'd usually be using dhcp. Which means your computer gets a new IP4-address every time your computer reconnects to the network. You'd have to find out your current IP4-address again every time.
There are definitely better alternatives which work between players world wide without bothering them to type in long number sequences. For example a public domain client-server solution. The server is just a piece of software that can run on one of the computer you are playing at.