local dailup ip

bigpeet

Newcomer
Joined
Oct 20, 2002
Messages
11
is there a class to find out my local ip ?
i tried it with:
Dim ipshost As IPHostEntry = Dns.GetHostByName("connserver")

this only shows me the tcp / udp adapters i think.
i have two networkcards installed on this server; the ip i want to find out is the one from the adsl connection.
on the adsl connection there is only ppp installed (no tcp, no udp).
when i use ipconfig on command sure there is the wanted ip address.
but when i use dns.gethostbyname() & dns.resolve() it only returns the ipaddress of the local adapter.
ipshost.AddressList.Length is only 1 ....

can u pleazzzz help ?
 
i have not fixed it, it works fine.
the only error was--> it has to run on the server not on my deskpc
and i think u can not use dns resolve method cause it only shows the first ip.... i used gethostbyname.
only a few lines of code, if u want to c ist look at the rar file.

when u want to run it on ur desk pc, u can implement the socketclass.
but that class really pisses me off! i posted about that, but no answer.
(better use the subclasses tcpclient and listner)
the problem i have there is when u bind the calling socket (not the listner) on another port, the shuttdown and close method wont set it free. i have to wait for the garbagecollector....
and i can't call dispose cause it is protected.
is there anyone who really knows about that?
 

Attachments

Back
Top