Merge pull request #21 from diantahoc/master

Check tracker host validity in the Tracker implementing class.
Change network detection code.