Gateway problem

buddyB

Newcomer
Joined
Nov 13, 2003
Messages
10
Location
Eindhoven, NL
Hello all,

I’m writing a program in Visual Basic.NET.
The program connects through a router to an IP-address and gets data there.
The connecting to an IP-address part is working well but if i'm trying to connect to an IP-address outside the router i can't make the connection.
I can’t set the gateway.

The code:
TxSocket.AutoResolve = False
TxSocket.Blocking = False
TxSocket.Binary = True
TxSocket.AddressFamily = AF_INET
TxSocket.Protocol = IPPROTO_TCP
TxSocket.SocketType = SOCK_STREAM
TxSocket.RemoteService = "telnet"
TxSocket.LocalPort = 23
TxSocket.RemotePort = 23
'TxSocket.DefaultGateway = ????? <---------
TxSocket.HostAddress = "192.168.0.224"

TxSocket.Connect()

Does someone have a idea how to set the gateway??



I use SocketWrench Freeware Edition 3.6 Build 3640.
 
Hello,

i've ask the same question at someone from catalyst.com and he said:


There is no way to set the default gateway address in SocketWrench.
This is something that you'd need to do either through the control panel, or using the 'route' command

So i've my answer.
Thanks
 
Back
Top