[Winpcap-users] Loopback Device on Windows

George Elias fs.georgee at gmail.com
Tue Dec 2 13:04:26 GMT 2008


Sorry to trouble again,

But, does anyone know if there is a way to get the loopback interface
automatically? I mean, someway I can code so it runs the right way in any
computer... I guess that if I hard code the interface name it will be
different on another computer.

Thank's a lot!

On Tue, Dec 2, 2008 at 10:35 AM, George Elias <fs.georgee at gmail.com> wrote:

> Hi Eddie!
>
> Just thanking you! It passes that point now.... Got other issues, but those
> are from the code I have...
>
> Thank's a lot!
>
>
> On Tue, Dec 2, 2008 at 10:08 AM, Eddie Ehlin <eddie.ehlin at vastgotadata.se>wrote:
>
>> George Elias skrev:
>>
>>> Hi Eddie,
>>>
>>> I did that, but I don't know the name of the device...
>>>
>>> Thank's a lot for the reply!
>>>
>>> On Tue, Dec 2, 2008 at 7:50 AM, Eddie Ehlin <eddie.ehlin at vastgotadata.se<mailto:
>>> eddie.ehlin at vastgotadata.se>> wrote:
>>>
>>>    George Elias skrev:
>>>
>>>        Hi all,
>>>
>>>        I'm porting some former cooworker's code from Linux to Windows.
>>>
>>>        On Linux it uses device "lo" as loopback device, what should I
>>>        use on Windows? Libpcap can't find "127.0.0.1
>>>        <http://127.0.0.1> <http://127.0.0.1>" neither "localhost" not
>>>        even "ACE_LOCALHOST".
>>>
>>>
>>>        Any help would be a great help!
>>>
>>>        Thanks in advance
>>>
>>>        --        George Elias Ferreira da Silva
>>>        MSN: fs.georgee at gmail.com <mailto:fs.georgee at gmail.com>
>>>        <mailto:fs.georgee at gmail.com <mailto:fs.georgee at gmail.com>>
>>>        Skype: fs.georgee
>>>
>>>  ------------------------------------------------------------------------
>>>
>>>        _______________________________________________
>>>        Winpcap-users mailing list
>>>        Winpcap-users at winpcap.org <mailto:Winpcap-users at winpcap.org>
>>>        https://www.winpcap.org/mailman/listinfo/winpcap-users
>>>
>>>    Hi George,
>>>    I'm not an expert at this but on Windows you need to install a
>>>    network-adapter (MS Loopback).
>>>    You should be able to install this adapter via the "Add&Remove
>>>    hardware" under control-panel.
>>>
>>>    See: http://support.microsoft.com/kb/839013
>>>
>>>    Best regards,
>>>    Eddie
>>>    _______________________________________________
>>>    Winpcap-users mailing list
>>>    Winpcap-users at winpcap.org <mailto:Winpcap-users at winpcap.org>
>>>    https://www.winpcap.org/mailman/listinfo/winpcap-users
>>>
>>>
>>>
>>>
>>> --
>>> George Elias Ferreira da Silva
>>> Fone: (48) 9911-5084
>>> MSN: fs.georgee at gmail.com <mailto:fs.georgee at gmail.com>
>>> Skype: fs.georgee
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Winpcap-users mailing list
>>> Winpcap-users at winpcap.org
>>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>>>
>>>
>> Hi,
>>
>> You should be able to find the name of the device by calling
>> pcap_findalldevs(). Check the example project "WpdPack/Example-pcap/iflist"
>> which is shipped with the dev-pack.
>> A name should look like something like this:
>> \Device\NPF_{989C471A-BA83-4065-814A-6D5881F7957E}
>>
>> Though all the devices that is listed by calling pcap_findalldevs() is not
>> suited for pcap, keep that in mind.
>>
>> I hope that this helps! :-)
>> Best regards,
>> Eddie
>>
>> Ps. No problem at all! Ds.
>>
>> _______________________________________________
>> Winpcap-users mailing list
>> Winpcap-users at winpcap.org
>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>>
>
>
>
> --
> George Elias Ferreira da Silva
> Fone: (48) 9911-5084
> MSN: fs.georgee at gmail.com
> Skype: fs.georgee
>



-- 
George Elias Ferreira da Silva
Fone: (48) 9911-5084
MSN: fs.georgee at gmail.com
Skype: fs.georgee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20081202/61cb1e00/attachment.htm


More information about the Winpcap-users mailing list