Hello all,
I have a NIC and a modem. I use the modem to connect to the internet, as below:
Code:Windows 2000 IP Configuration Host Name . . . . . . . . . . . . : zlg Primary DNS Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Mixed IP Routing Enabled. . . . . . . . : Yes WINS Proxy Enabled. . . . . . . . : No Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : Winbond W89C940 PCI Ethernet Adapter Physical Address. . . . . . . . . : DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.0.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DNS Servers . . . . . . . . . . . : NetBIOS over Tcpip. . . . . . . . : Disabled PPP adapter StarHub Free Internet: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : WAN (PPP/SLIP) Interface Physical Address. . . . . . . . . : DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 203.117.123.170 Subnet Mask . . . . . . . . . . . : 255.255.255.255 Default Gateway . . . . . . . . . : 203.117.123.170 DNS Servers . . . . . . . . . . . : 203.117.33.19 203.117.33.18 NetBIOS over Tcpip. . . . . . . . : Disabled
Question: When I use Winsock control in vb to detect the ip address, all it give me is the one for Ethernet adapter Local Area Connection. Any idea how to make it so that I can obtain the one for PPP adapter StarHub Free Internet???
THANX!
Sze Leung
[Edited by zlg on 01-16-2001 at 08:16 AM]




Reply With Quote