How-to articles, tricks, and solutions about IP

Getting the IP address of the current machine using Java

To get the IP address of the current machine using Java, you can use the InetAddress.getLocalHost method of the java.net package.

How to Get Remote IP Address in PHP

Sometimes getting the IP address of the client can be tricky. With the help of this snippet, you will manage to get the real remote IP address in PHP.