Java-Does 1netAddress.getLocalHost()-require access to /etc/hosts file?

(Doc ID 2327419.1)

Last updated on NOVEMBER 12, 2017

Applies to:

Java SE JDK and JRE - Version 8 to 9
Information in this document applies to any platform.

Goal

Does InetAddress.getLocalHost() need read permission of '/etc/hosts' file ?
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms