Get a web page just containing the client's public IP address: http://www.perceler.com/getipadr1.php returns "54.234.231.49"
The public IP address is the one seen by web servers, it may be different from the local IP address (as reported by IPCONFIG) due to intermediate devices, such as gateways, that may rename your IP address (e.g. NAT, Network Address Translation).
C# example VB.NET example C++/CLI example Java example PHP example Hide example
On all kinds of systems this Java method can be used to get your public IP address:
import java.io.*;
import java.net.*;
public static String getIpAddress() throws MalformedURLException, IOException {
URL url=new URL("http://www.perceler.com/getipadr1.php");
HttpURLConnection conn=(HttpURLConnection)url.openConnection();
conn.connect();
InputStream stream=(InputStream)conn.getContent( );
InputStreamReader inStream=new InputStreamReader(stream);
BufferedReader reader=new BufferedReader(inStream);
String s=reader.readLine();
reader.close();
inStream.close();
stream.close();
conn.disconnect();
return s;
}
Check a web site is alive (Google, CodeProject, Genious).
Check for risky outdated browser plugins.
Test for Internet Explorer compatibility.
This site adds two class names to the body tag of every page, depending on the browser used at the client side; and this web page uses different CSS styles to highlight the recognized browser.
User agent: CCBot/2.0
Browser Family | CSS Class Names |
IE (IE6 IE7 IE8 IE9 IE10 IE11 IE12) | |
FF (FF3 FF4 FF5 FF6 FF7 FF8 FF9 FF10 FF11 FF12 FF13 FF14 FF15 FF16 FF17 FF18 FF19 FF20) | |
SA (SA1 SA2 SA3 SA4 SA5 SA6 SA7 SA8 SA9 SA10 SA11 SA12) | |
CR (CR10 CR11 CR12 CR13 CR14 CR15 CR16 CR17 CR18 CR19 CR20 CR21 CR22 CR23 CR24 CR25 CR26 CR27 CR28 CR29 CR30) | |
OP (OP10 OP11 OP12 OP13 OP14 OP15 OP16 OP17 OP18 OP19 OP20) |
The table above has been built for growth, a lot of these browser versions probably haven't surfaced yet.
|
Cookies disabled |
JavaScript disabled |
Perceler (Company # 0895.737.095) |
Copyright © 2012, Luc Pattyn |
Last Modified 16-Apr-2013 |