I maybe having a hard time with this one just because of all the other stuff thrown in making what I want probably more complicated then I want or because I just don't know how to really put into a proper search what I am looking for. So here is what I'm looking for and either if it's short and sweet and you wanna write the code cool if not examples I can use or build off of are just as good.

I want to run an application on a computer on my home1's network which grabs the IP (got this part already finished) Then I want whenever my application calls for it from anywhere on the internet (we will refer to this as home2) from home2 I want it to broadcast the IP of home1 to home2 so that my application knows my public IP of home1.