Added the retrieval of the local IP address from java.net package.