1

I am just starting HTML so the mistake I am currently making is probably something really obvious. I found this code that should display the user's IP address on the page, but it doesn't work. Why is this?

<html>
<head>
    <title>Palpable Coral</title>
</head>
<body>
Your IP address is: <? echo $_SERVER["REMOTE_ADDR"]; ?>
</body>
</html>
Varun W.
  • 242
  • 2
  • 14
Palpable Coral
  • 105
  • 1
  • 2
  • 12

1 Answers1

-2

i think this link will help you Get the client IP address using PHP

or use php like this

< ? php echo $_SERVER['REMOTE_ADDR'] ? >