Take the 2-minute tour ×  I set up a static IP and did port
forwarding on my notebook, and now I have a static IP address,
but it's relatively static, every time I re-start the machine, I
get another address, and since I have a "static" IP I can now do
Paypal IPN messaging. But how can I get this static IP from my
Java program ? One way I can think of is to visit :
http://portforward.com/ and on that page it tells me what my
external IP is, so I can extract it with Java code, is there any
other way that I can do in my Java code to get this info ?
share|improve this question add comment  4 Answers  The best
solution is probably dynamic DNS. Essentially, you run a program
on your computer (or router) that notifies a DNS server when
your IP changes. Then, you can just tell PayPal the domain name.
share|improve this answer add comment  There is a public service
you can call with your script to retrieve your external IP
address. Bear in mind they have changed the link location once.
If you control your own serve