EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Binding Local IP

Posted: 08/28/2008 23:15:27
by Zeke Kievel (Standard support level)
Joined: 08/28/2008
Posts: 2


I can't seem to bind a specific local IP. The software keeps using the server's default IP. I tried using TElHTTPSClient.LocalAddress and also tried TElHTTPSClient.SocketBinding. Is there something that I missed?

Thanks in advance,
Posted: 08/29/2008 00:39:19
by Ken Ivanov (Team)

Would you be so kind to show the code you are using?
Posted: 08/29/2008 01:31:16
by Zeke Kievel (Standard support level)
Joined: 08/28/2008
Posts: 2

This is the code that I use:

httpClient = new SBHTTPSClient.TElHTTPSClient();
httpClient.MaxRedirections = 0;
httpClient.SocketTimeout = 10000;
httpClient.PreferKeepAlive = true;

httpClient.LocalAddress = "";
httpClient.LocalPort = currentPort;

httpClient.SocketBinding.LocalIntfAddress = "";
httpClient.SocketBinding.Port = currentPort;

both localaddress and socketbinding don't work. No matter what ip i replace "" it would just use the server's default IP
Posted: 08/29/2008 04:55:08
by Ken Ivanov (Team)

Your code is correct and should work. Please re-check that the correct local address is specified and the specified port number is free.

Please also ensure that you are using the latest available build of SecureBlackbox.
Posted: 08/29/2008 05:20:54
by Eugene Mayevski (Team)

JFYI: LocalAddress is obsolete and is mapped to SocketBinding.LocalIntfAddress

Sincerely yours
Eugene Mayevski



Topic viewed 2447 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!