checkpointng
Member
|
Data Server incorrectly gets interfaces
When using the data server where there are multiple interfaces or a server with vm workstation on it.
Data server gets the wrong one, and if for whatever reason it cant get one it picks the localhost (127.0.0.1) - even if there are interfaces present.
**Would be nice to have the option of adding an ip address to the server data.txt file, rather than having it trying to determine an ip address.
|
|
12-03-2011 04:02 AM |
|
Esenthel
Administrator
|
RE: Data Server incorrectly gets interfaces
obtaining local address is done using windows function:
GetAddrInfoA(Str8(host), Str8(TextInt(port)), &hints, &result);
it iterates all results and selects the last one, if you know better way to obtain it please let me know
you can also obtain local address using windows cmd "ipconfig" or right clicking on your network connections in windows taskbar
|
|
12-04-2011 12:29 PM |
|
checkpointng
Member
|
RE: Data Server incorrectly gets interfaces
(12-04-2011 12:29 PM)Esenthel Wrote: obtaining local address is done using windows function:
GetAddrInfoA(Str8(host), Str8(TextInt(port)), &hints, &result);
it iterates all results and selects the last one, if you know better way to obtain it please let me know
you can also obtain local address using windows cmd "ipconfig" or right clicking on your network connections in windows taskbar
Esenthel,
Thanks for the responce, as a suggestion would it be possible to expose the results into a pulldown menu (or any container) so that we may select which interface to have the data server bind to?
Otherwise, iterate all the results and rather than picking the last one, have it pick the one with a default gateway set.
**This would help in environments where we have our data center in a remote location so recabling to a new interface would require onsite hands on for our rack.
Thanks.
(This post was last modified: 12-04-2011 04:46 PM by checkpointng.)
|
|
12-04-2011 04:45 PM |
|