How to display the IP address of a visitor?

Last update on November 21, 2009 07:08 AM by jak58
Published by jak58

How to display the IP address of a visitor?







The IP address of a visitor refers to the computer address that has been used by the later and it can be practical in many ways.

You can know who visited your website and from where they are from. You will be able to know how many times the same user has visited the website and what are the favorite sections that are chosen by the user. By this, you can optimize your website depending on your public. Personalizing your website is a great marketing tool that can increase the traffic on your website.

The PHP code for this function is

<? 

echo $_SERVER["REMOTE_ADDR"]; 

?>
Best answers for « How to display the IP address of a visitor? » in :
Command to detect your IP address! Show Command to detect your IP address! Command for Windows 2000 / XP / Vista Command for Windows 95/98 Command for Linux IP address (Internet Protocol) is a numerical identification to detect your computer on a network. It is used to...
[PHP] How to display the IP address of a visitor? Show [PHP] How to display the IP address of a visitor? Here is a simple tip to determine the IP address of someone visiting your Website.
How to detect your public IP address? Show How to detect your public IP address? The ipconfig for Windows also known as ifconfig under Linux display your IP address. However behind a router that makes NAT, this will not surely correspond to your public IP address which however...
Having a static IP address under Ubuntu 8.10 ShowHaving a static IP address under Ubuntu 8.10 To have a fixed IP persistent: Configure manually the interfaces For a fix IP (10.0.0.1 on your eth1 interface) use: To make use of dynamic IP (e.g eth0): DNS NetworkManager is a...
What is your IP address? ShowWhat is your IP address? What is an IP address? How to know your IP address? For Windows 2000/ Windows XP/ Windows Vista users For Windows 95/ Windows 98 users By using online tools What is an IP address? When a PC is connected to...
MacOS X – Associating a name to an IP Address ShowMacOS X – Associating a name to an IP Address What you should know Use this step Example What you should know Please note: this is only valid until MacOSX 10.4, NOT for MacOSX 10.5 (Leopard) MacOSX is a BSD system, the first...
Download IP Traffic Monitor ShowIP Traffic Monitor monitors all network connections on the computer where it is installed. The program shows you detailed information, such as the remote IP address, host name if available, details of inbound and outbound traffic. Advantage It...
IP Address ShowWhat is an IP address? Computers communicate over the Internet using the IP protocol (Internet Protocol), which uses numerical addresses, called IP addresses, made up of four whole numbers (4 bytes) between 0 and 255 and written in the format...
IP address spoofing ShowIP address spoofing "IP address spoofing" is a technique that involves replacing the IP address of an IP packet's sender with another machine's IP address. This technique lets a pirate send packets anonymously. It is not a question of changing the...
NAT- Network address translation, port forwarding and port trigg ShowThe principle of NAT Network address translation or NAT was developed in order to respond to the shortage of IP addresses with IPv4 protocol (in time the IPv6 protocol will respond to this problem). In fact, in IPv4 addressing the number of...