what is my ip address? - Post ID 165800

User 2093356 Photo


Registered User
49 posts

Howdy neighbors!

In my old website, just HTML, I had the following:

<span class="style9">
<% = Request.Servervariables("REMOTE_ADDR") %>
</span>
<span class="style9">HOST:</span>
<span class="style9">
<% = Request.Servervariables("REMOTE_HOST") %>
</span>

It was an ASP file (by extension).

How can I achieve the same with an HTML file through VSD?

I checked the forums, looked at flash plug-ins, but found nothing in my first 45 minutes of searching.

any help would be appreciated.

Andy
AndyF
User 2093356 Photo


Registered User
49 posts

PS. in advance - don't post NO, can't do it -- as an answer.

If you have a solution. please post.
AndyF
User 187934 Photo


Senior Advisor
20,271 posts

Save a page in notepad or some other HTML editor with a .php extension.
Place this code on that page.
<?php
$ip = $_SERVER["REMOTE_ADDR"];

echo 'Your IP Adress is:'. $ip;

?>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

After you have done what Eric says, you'll have to use an iframe in order to make that php file show up in VSD:

<iframe src="ipaddress.php"></iframe>
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.