I ran the example yesterday and got the ip address that looked something like 65.31.33.234 . I understand this is my public ip address. Everything looked fine until I ran it today. It now gives me my local ip address 192.168.2.4 . I wonder what changed between yesterday and today.

Why did I get the external ip address yesterday and a local ip address today?
I did not make any change in the code. Just to be sure, I rebuild the project again with code copied from the example.
I am totally baffled!

Thanks ZapB. I think I have to use an external service to get my public routable IP address. I guess, for now, I can go ahead with the private non-routable IP address. It will let me network between computers in my home network (correct me if i am wrong)