Resources, Tech Help, News & Tutorials

The Word

How to display a visitors IP Address using php

by | Sep 28, 2018 | Code & Bits, Technical

This comes up pretty often and is a simple task to do using php. here is a snipet of code that will display a viewers IP address to them. You can build on it from here.

<?php
$ip = $_SERVER[‘REMOTE_ADDR’];
echo “Your IP Address is: ” . $ip;
?>