[squeak-dev] Network address lookup with multiple adapters

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Network address lookup with multiple adapters

Jon Hylands

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      [hidden email]      http://www.huv.com/jon

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

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Network address lookup with multiple adapters

Bert Freudenberg

On 20.07.2009, at 21:54, Jon Hylands wrote:

>
> 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?


Yes, there is a newer NetworkPlugin, at least on Linux. Not sure if  
it's been ported to Windows yet.

- Bert -