Added a cross-platform network IP localhost lookup function.