Top "Inetaddress" questions

How to get the IP prefix while we have subnet and IPv4 address using python-netaddr?

I am using python-netaddr library to work on IP Addresses and subnets. I read the full documentaion of netaddrd given: …

python ip python-2.7 ip-address inetaddress
JAVA Specifying port with InetAddress

I am using InetAddress to determine if my server is online. If the server is offline it will restart the …

java inetaddress
Getting My LAN ip address (192.168.xxxx) (IPV4)

In my android device I am trying to find its IP address(IPV4). If I do the following code InetAddress …

java android inetaddress
How can I get domain name in Java

I need domain name. Currently I am getting domain name as follows InetAddress addr; String hostnameCanonical; try{ addr = InetAddress.getByName(…

java dns domain-name inetaddress
Fully qualified machine name Java with /etc/hosts

I am trying get the fully qualified name of my machine (Windows 7 x64) in Java. On my machine, I've updated …

java inetaddress fully-qualified-naming
Java Getting IPv4 Address

Regarding this link where using the codes provided to produce the IP addresses. String ip; try { Enumeration<NetworkInterface> …

java ip-address inetaddress
Java application wanting to use both Inet4Address and Inet6Address at the same time

I have a Java application that needs to connect via sockets to two different servers on two separate machines. One …

java sockets ipv6 ipv4 inetaddress
Java InetAddress.isReachable() timeout

I am trying to find out if specific hosts on my network are reachable. My java code is as follows: …

java ping inetaddress
Java InetAddress.getHostName() taking a very long time to execute

I have the following little code snippet: InetAddress address = InetAddress.getByName(host); if(address.isReachable(TIMEOUT_IN_MILLISECONDS)) { System.out.…

java inetaddress
How to turn Java class into one of its subclasses (SocketAddress and InetSocketAddress)

I am trying to get the IP of a socket connection in string form. I am using a framework, which …

java class sockets networking inetaddress