[squeak-dev] Network address lookup with multiple adapters

Jon Hylands jon at huv.com
Tue Jul 21 00:54:28 UTC 2009


Hi everyone,

So, hooked up to my robot are two separate networks - one is the wifi
connection to the router (192.168.1.115), and the other is to a gigabit
ethernet camera using the ethernet port on the mini-itx (169.254.1.11).

When I run ipconfig (under XP) I get this:

Windows IP Configuration

Ethernet adapter Local Area Connection:

        Connection-specific DNS Suffix  . :
        Autoconfiguration IP Address. . . : 169.254.1.11
        Subnet Mask . . . . . . . . . . . : 255.255.0.0
        Default Gateway . . . . . . . . . :

Ethernet adapter Wireless Network Connection:

        Connection-specific DNS Suffix  . : phub.net.cable.rogers.com
        IP Address. . . . . . . . . . . . : 192.168.1.115
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . . . . : 192.168.1.1

If I don't have the camera plugged in, when I evaluate:

	NetNameResolver localAddressString

it returns:

	'192.168.1.115'

However, once I plug in the camera and it gets an IP address assigned,
#localAddressString returns '169.254.1.11'.

Is there a way to apecify the adapter name, or get all the network
addresses?

Thanks,
Jon

--------------------------------------------------------------
   Jon Hylands      Jon at huv.com      http://www.huv.com/jon

  Project: Micro Raptor (Small Biped Velociraptor Robot)
           http://www.huv.com/blog



More information about the Squeak-dev mailing list