Guys, as I already told you multiple times, I finished my primitive chat program using RakNet. It works perfectly fine, but only with laptops that are connected to my router, and it doesn't work when a friend who lives somewhere else tries to connect to me.
Then in the FAQ I see that it's because of NAT. From what I gather, IPv4 addresses are not so much, that's why some guys decided that instead of giving a different IP to every PC, they can just give a different IP to every modem and map the different ports of the modem to all the PCs connected to it.
And all the devices connected to that modem use the modem's IP, the difference is that everybody is connected to different port on the modem.
So my friend couldn't connect to me because when I googled "what's my ip", it actually shows my modem's IP, so I was giving him the public IP of my modem, not the IP of my PC. That's why I need to somehow access that NAT forwarding table on my router and figure out how to tell him the right destination. And I don't want NAT punchthrough, because I don't want to pay for server. I want to be the server. Is there some very simple way of doing this.
Can I somehow get a simple unique number from somewhere and shove it into my friend's Connect() function?