| View previous topic :: View next topic |
| Author |
Message |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Jul 31, 2013 2:26 am Post subject: Binding Client Sockets (Indy or Raw)? |
|
|
I don't know if anyone has ever had this problem before but I have a computer with multiple external IP addresses. However, I want my program to be able to select which IP address to use. I'm using Indy but the IdHttp.BoundIP and TIdClientSocket.BoundIP don't seem to work as either it errors out with binding failed or the remote ip seem from the other server is still the main IP I use.
Is it even possible to force your client to use a specific IP to access a website or is IP Binding only for servers? |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25823 Location: The netherlands
|
Posted: Wed Jul 31, 2013 2:39 am Post subject: |
|
|
The system picks the network interface for you depending on your route table
I think the "ROUTE" command can be used to set a specific network device to be used when the destination is a specific ip
It's been a LOOOOONG time that I used this so I kinda forgot how to use it, but ROUTE PRINT will show the current list , ROUTE ADD xxx adds a new entry and ROUTE -p ADD xxx makes it so it stays on next reboot a well _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Jul 31, 2013 4:56 am Post subject: |
|
|
| Hmm interesting. But that would only work if the destination you are trying to reach is different. I don't think that will work if you're trying to connect to the SAME destination with DIFFERENT ips correct? |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25823 Location: The netherlands
|
Posted: Wed Jul 31, 2013 5:50 am Post subject: |
|
|
right. I don't think you can use both at the same time for the same destination, but I could be wrong
Perhaps you could connect one, then change the route and connect the second. But I think the old connection will get broken then _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
dnsi0 I post too much
Reputation: 0
Joined: 04 Jan 2007 Posts: 2674
|
Posted: Wed Jul 31, 2013 11:01 am Post subject: |
|
|
Hmm I think I resolved the issue of having to use multiple ips to access one IP so I'm going to look into the route command and see what I can do.
Thanks. |
|
| Back to top |
|
 |
|