[twsocket] TWSocket 2 default gateways - [request]

Dhaliwal, Seraj dhaliwal@scn.spawar.navy.mil
Mon, 12 Jun 2000 10:31:49 -0400

do not take this email wrong, i would like to advise others also to, please
do not put "IPAddress" on the emails to an email list, (you know the reason
- prone to hackers)

"education eliminates all barriers with society, religion and workplace"

-----Original Message-----
From: Wilfried Mestdagh [mailto:wilfried_sonal@compuserve.com]
Sent: Monday, June 12, 2000 10:14 AM
To: TWSocket Mailing List
Subject: [twsocket] TWSocket 2 default gateways


I have following problem:

On a machine with 2 network interface there is 1 default gateway, as this:

Destination        Netmask          Gateway       Interface  Metric       2

When I use a dial up connection to specific other external network (not
reacheable in default gateway) then RAS installs a second default gateway,
as this:

Destination        Netmask          Gateway       Interface  Metric       1       2

The problem is 2 default gateways, it means the gateway on interface in this example is not reacheable anymore. How can I avoid
RAS to install a default gateway ?

I do not need it sinds the interface ip of the dial up connection is
specific network that I know, I can get it tru LocalIpList function, set
WSocket.LocalAddr to this interface and voila I can connect tru it without
the default gateway.

I think it is possible to get rid of it by executing a batch file who delete
the top route after the connection is there but I dont find this very
reliable. Someone has more elegant idea ?  It has to be work on Windows NT
(I dont care about other operating systems).

thanks in advance, Wilfried

TWSocket mailing list [http://elists.org/mailman/listinfo/twsocket]
Visit our website at http://www.rtfm.be/fpiette/indexuk.htm