Fixed issue with strange network interface selection (by hostname). Used even stranger algorithm :) Have fun trying to understand it.