Hi all,
I got into some trouble trying to bind to a specific IP address.
Code:
Private mobjClient As TcpClient
mobjClient = New TcpClient(IPAdd ress.Parse("10. 16.104.87").ToS tring,
8892)
mobjClient.GetS tream.BeginRead (marData, 0, 1024, AddressOf DoRead,
Nothing)
The above code works perfectly along with the rest of the code - but
what I am trying to figure out is how to use a specific IP to connect
from.
I have 4 IP addresses and I want to use a the "3" one. How can I tell
the code to use that one IP?
Currently I have tried with:
mobjClient.Clie nt.Bind(New
IPEndPoint(IPAd dress.Parse("10 .24.36.22"), 8892))
But that doesnt work. Can anyone help me out here?
/ Jan
I got into some trouble trying to bind to a specific IP address.
Code:
Private mobjClient As TcpClient
mobjClient = New TcpClient(IPAdd ress.Parse("10. 16.104.87").ToS tring,
8892)
mobjClient.GetS tream.BeginRead (marData, 0, 1024, AddressOf DoRead,
Nothing)
The above code works perfectly along with the rest of the code - but
what I am trying to figure out is how to use a specific IP to connect
from.
I have 4 IP addresses and I want to use a the "3" one. How can I tell
the code to use that one IP?
Currently I have tried with:
mobjClient.Clie nt.Bind(New
IPEndPoint(IPAd dress.Parse("10 .24.36.22"), 8892))
But that doesnt work. Can anyone help me out here?
/ Jan
Comment