[REBOL] connected? problem in Windows 2000 with 2 network adapters
From: kracik::mbox::dkm::cz at: 5-Apr-2001 19:27
Holger Kruse wrote:
> On Thu, Apr 05, 2001 at 09:59:43AM +0000, Michal Kracik wrote:
> > It does not work, at least in Windows View 0.10.38.3.1, Windows NT 4
> > and 2000. I have 2 network adapters and I'm always "connected" with one
> > of them to cable TV. View connected? function returns true. Then I
> > "disconnect" with ipconfig /release, and connected? still returns true.
>
> Please contact [feedback--rebol--com] about this. Make sure you include your
> network configuration (information in Network control panel etc.),
> and diagnostic output, e.g. from winipcfg.
>
> --
> Holger Kruse
> [holger--rebol--com]
Hi,
I did some more tests with Rebol/View beta 0.10.38.3.1 and
Rebol/Core 2.5. I send some long detailed information, hope this helps.
Only 1 network adapter enabled, DHCP IP address released:
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\>ipconfig /all
Windows 2000 IP Configuration
Host Name . . . . . . . . . . . . : neco
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Kryt:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI
Ethernet Adapter
Physical Address. . . . . . . . . : 00-30-4F-03-31-8A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 255.255.255.255
DNS Servers . . . . . . . . . . . : 62.24.64.2
62.24.64.3
REBOL/Core 2.5.0.3.1:
>> connected?
== false
REBOL/View 0.10.38.3.1:
>> connected?
== false
Only 1 network adapter enabled, using DHCP assigned IP address:
C:\>ipconfig /renew
Windows 2000 IP Configuration
Ethernet adapter Kryt:
Connection-specific DNS Suffix . : dkm.cz
IP Address. . . . . . . . . . . . : 62.24.73.252
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 62.24.73.1
C:\>ipconfig /all
Windows 2000 IP Configuration
Host Name . . . . . . . . . . . . : neco
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : dkm.cz
Ethernet adapter Kryt:
Connection-specific DNS Suffix . : dkm.cz
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI
Ethernet Adapter
Physical Address. . . . . . . . . : 00-30-4F-03-31-8A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 62.24.73.252
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 62.24.73.1
DHCP Server . . . . . . . . . . . : 62.24.64.7
DNS Servers . . . . . . . . . . . : 62.24.64.2
62.24.64.3
Lease Obtained. . . . . . . . . . : Thursday, April 05, 2001
7:01:02 PM
Lease Expires . . . . . . . . . . : Friday, April 06, 2001
7:01:02 PM
REBOL/Core 2.5.0.3.1:
>> connected?
== true
REBOL/View 0.10.38.3.1:
>> connected?
== true
So, this works OK.
Now, with 2 network adapters enabled, DHCP IP address released:
C:\>ipconfig /release
Windows 2000 IP Configuration
IP address successfully released for adapter "Kryt"
C:\>ipconfig /all
Windows 2000 IP Configuration
Host Name . . . . . . . . . . . . : neco
Primary DNS Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter VMWare:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : VMware Virtual Ethernet
Adapter (basic host-only support for VMnet1)
Physical Address. . . . . . . . . : 00-50-56-F7-0F-8D
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 192.168.22.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
DNS Servers . . . . . . . . . . . :
Ethernet adapter Kryt:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Realtek RTL8029(AS) PCI
Ethernet Adapter
Physical Address. . . . . . . . . : 00-30-4F-03-31-8A
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 255.255.255.255
DNS Servers . . . . . . . . . . . : 62.24.64.2
62.24.64.3
REBOL/Core 2.5.0.3.1:
>> connected?
== true
REBOL/View 0.10.38.3.1:
>> connected?
== true
This is the behavior I was complaining about. The computer is
connected to a private network with an adapter with IP address
192.168.22.1, so internet is unreachable through this connection.
But perhaps REBOL does as much as it can? It cannot know which
adapter I normally use for access to the Internet, and it cannot
know if 192.168.22.1 is translated with NAT to some valid IP
address or not.
Regards,
Michal Kracik