I am trying to write a program that e-mail's me my IP number(I have a different one every time I dial in)

How can i read it in windows ?