About Store Forum Documentation Contact
Donations:
345$/mo



Post Reply 
Data Server incorrectly gets interfaces
Author Message
checkpointng Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #2
RE: Data Server incorrectly gets interfaces
I think this feature will have to be handled by Esenthel. Even the company license doesn't have source for the data server, unless that has changed recently.

What you can do, if you are using a VM, is to change/apply the network settings you want the data server to communicate with the first interface (eth0) of the VM. I think by default the data server is only using eth0. Technically, this is possible too with a physical machine, but it will require you to replug your network cables to the appropriate ports once you have identified which one is which.

www.thinkplaystudios.com
(This post was last modified: 12-03-2011 10:52 PM by aceio76.)
12-03-2011 10:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
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
Find all posts by this user Quote this message in a reply
checkpointng Offline
Member

Post: #4
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
Find all posts by this user Quote this message in a reply
aceio76 Offline
Silver Supporter

Post: #5
RE: Data Server incorrectly gets interfaces
Ah its the last NIC, not the first. I think if it will be redone, I think the ability to select is a better idea than selecting just the one with the gateway in it. This will be a problem with multi-homed servers as well, so being able to select is a much better way imo.

www.thinkplaystudios.com
12-04-2011 05:15 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply