How to Assign a user selected IP to Indy 10.1.5 GStack.LocalAddress
Posted on 2013-06-16
A client has asked me to make it possible to choose other than the default (first) local IP address (when there is more than one NIC) In a custom application I've written for them using the Indy 10.1.5 UDP component..
I can get the list of available addresses thusly (where cmbxLocalAddresses is a Tcombobox)
But GStack.LocalAddress is a read only property and I can't see a way of setting (assigning) the selected value to that GStack Property.
Does anyone have any suggestions.
Unfortunately, I don't have a machine with more than one NIC so I'm hoping for a proven solution - but if not that, at least some ideas.