IP lookup to display MY ip on MY personal website

IP Address Questions and AnswersCategory: IP QuestionsIP lookup to display MY ip on MY personal website
Relicbane asked 3 years ago

Hey guys,

I have used this site probably daily for the last 6 months. I run a server from my home PC for a game and Team Speak 3 and now a website. My IP is issued from my ISP and currently doesn't change often(read: once in the last 5 months). So its GREAT for these services. I had the brilliant idea to get a website up and running, with info for the game and TS3 servers, etc etc etc. So i went over to DYNDNS.com and got myself a hosted site.

Now to the question, On said personal website i was wondering if anyone knows of a way to have my current IP displayed on it with out me having to check and update the HTML codeing. I am thinking there must be a script that comes here or other IP check sites and would place the current one into the users view of my website.

My problem is that i am not that strong with javascript(read:at all) and i am affraid if i just sort of do this blindly it will reports the person viewing my website's IP address instead of mine, which has the server they are trying to connect to.

Sorry if this is a really long way to a question.

Thanks in advance.


1 Answers
Shnerdly Staff answered 3 years ago

Thanks for your question Relicbane.

If I understand correctly, you want to display the IP address of your server on your server webpage and automate it to change as the IP changes.

You said you went to dyndns.com and got "a hosted site" Does that mean that the site is hosted by them or you just bought a domain name to direct to your server and use their dynamic DNS Service?

What Operating System are you using for your webserver? Windows? Linux? and what websever software are you running? Apache? Microsoft IIS? Are you running PHP or perl on the webserver?

I ask all of these questions because this will require some kind of server side script. We need to know what kind of scripting software is available. Java can do it and once the script is installed, you don't need to do anything at all with it so "knowing" about Java doesn't really matter. The same goes for Perl and PHP. I am not aware of a "script" that can be run directly in html to accomplish your request.

Know the answer? Login or sign up for an account to answer this question.
Sign Up