getByName(String host)
Determines the IP address of a host, given the host's name.
getAllByName(String host)
Given the name of a host, returns an array of its IP addresses, based on the configured name service on the system.
|
może dlatego, że to metoda statyczna, dwa - zwraca hosta. nawet w przypadku getAll, zauważ co jest napisane na końcu " na bazie konfiguracji twojego serwisu systemowego" Ile jest hostów w takim razie u Ciebie systemowo zadeklarowanych ??
A no jeden stąd ... zwróci 1 wynik