EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Binding Local IP

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#7461
Posted: 08/28/2008 23:15:27
by Zeke Kievel (Standard support level)
Joined: 08/28/2008
Posts: 2

Hi,

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,
Zeke
#7462
Posted: 08/29/2008 00:39:19
by Ken Ivanov (Team)

Would you be so kind to show the code you are using?
#7463
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 = "0.0.0.0";
httpClient.LocalPort = currentPort;

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

both localaddress and socketbinding don't work. No matter what ip i replace "0.0.0.0" it would just use the server's default IP
#7466
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.
#7467
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
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

Topic viewed 2397 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!