buddyB
Newcomer
Hello all,
Im 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 cant 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.
Im 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 cant 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.