Re: How to force looparound and not loopback?
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Wed, 21 Mar 2007 12:30:08 +0200
OTOH be aware that only one IP ( adapter ) used to send data to destination
( in the case of remote IP ) and that with lowest metric ( high priority )
in the route table
Arkady
"Alexander Nickolov" <agnickolov@xxxxxxxx> wrote in message
news:etwzRrxaHHA.4552@xxxxxxxxxxxxxxxxxxxxxxx
That's not possible - routing is not even involved. The
TCP/IP stack detects that the target address is local and
automatically uses the loopback adapter. It never needs
to check the routing table.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
<maruk2@xxxxxxxxxxx> wrote in message
news:1174350691.771684.226390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Suppose you have two network cards on the same PC (with Vista)
and connect them to a Linksys router. The connections are set up
with "Obtain an IP address automatically" and the router assigns
192.168.1.100 and 192.168.1.101
I want to test a UDP code that sends to one of these IP addresses
through the router.
However, winsock and the table route seem to force a loopback,
i.e. they know that the destination IP address is on the same PC so
the router is never reached.
I want to force a looparound, where datagrams destined for IP2 go out
on IP1 card to the router, and back on card IP2, obviously making sure
they do not go out again on IP1 in a loop but to the receiving code.
Is making changes to the route table the only solution? How?
.
- References:
- How to force looparound and not loopback?
- From: maruk2@xxxxxxxxxxx
- Re: How to force looparound and not loopback?
- From: Alexander Nickolov
- How to force looparound and not loopback?
- Prev by Date: Re: how to establish wireless communication
- Next by Date: Re: WSAEADDRNOTAVAIL 10049 error
- Previous by thread: Re: How to force looparound and not loopback?
- Next by thread: Re: How to force looparound and not loopback?
- Index(es):
Relevant Pages
|