
Finding IP Addresses for Dial up connection
I've got an idea for a program, but I'm not sure about a few of the
details, so hopefully someone can help me. In my departmet, we've got a
database of FAQs, Howtos, magazine articles, etc, concerning MIS stuff.
We'd like to be able to add a program to the Win95/NT40 sendto menu and
have the current page added to the database.
I've figured out that Internet Explorer sends an internet shortcut when you
use the sendto option, so this leads me to believe that I'll have to
download the page again before I can save it to disk.
I have located custom controls for tcp and udp communications, but now I
need to know what to do with them.
Now, my problems.
1- I'm on a tcp/ip network already, but my Internet access is through a
dialup account. Therefore, when online I have 2 ip addresses. How do I
determine my ip address through the dialup connection (an API call,
maybe?).
2-DNS. I know it uses UDP, but I don't know what commands to send or what
port to connect to. I also don't know how to locate the address of my
dial-up DNS server (an API call, perhaps?).
If I could get through these problems, I think I'd be OK. Any help would
be most appreciated (could you cc: me by e-mail when posting responses, if
possible?)
TIA
__
Devin Redlich