Retrieve visitors IP Address

 
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues
View previous topic :: View next topic  
Author Message
jerstra
-


Joined: 15 Jul 2003
Posts: 2

PostPosted: Tue Jul 15, 2003 10:03 pm    Post subject: Retrieve visitors IP Address Reply with quote

If been searching my butt off on the web to get a good CGI-script
for showing a visitor his IP-address.

If tried some stuff but it wouldn't work.

I'm running the Abyss web server to test some things and i need to see,
what the ip-address is when i visit my page.

Can anyone please tell me how to make such an application.

I'd appreciate it!

Thanks
Jeroen


---------------------------------------------
it takes 20 muscles to create a happy face and 40 muscles to put on an angry face. So why tire yourself?
Back to top View user's profile Send private message
CapFusion
-


Joined: 18 May 2003
Posts: 617
Location: Lost in Abyss' Dungeon

PostPosted: Tue Jul 15, 2003 11:43 pm    Post subject: Re: Retrieve visitors IP Address Reply with quote

jerstra wrote:
If been searching my butt off on the web to get a good CGI-script
for showing a visitor his IP-address.

If tried some stuff but it wouldn't work.

I'm running the Abyss web server to test some things and i need to see,
what the ip-address is when i visit my page.

Can anyone please tell me how to make such an application.

I'd appreciate it!

Thanks
Jeroen


You mean to show your IP like what Aprelium is doing here?
http://www.aprelium.com/ip/


Quote:

---------------------------------------------
it takes 20 muscles to create a happy face and 40 muscles to put on an angry face. So why tire yourself?

Ahhhh..... It not the muscle that get you tired but the source itself to cause you to have angry face.
_________________
CapFusion,...
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jul 16, 2003 3:54 pm    Post subject: Re: Retrieve visitors IP Address Reply with quote

You don't even need a script. You can use SSI to do that.

Create a HTML page and change its extension from .html to .shtml . Next, insert in the HTML code the following code:

Code:

Your IP is <!-- #echo var="REMOTE_ADDR" -->


When someone browses this .shtml page, he/she'll see his IP.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
CapFusion
-


Joined: 18 May 2003
Posts: 617
Location: Lost in Abyss' Dungeon

PostPosted: Wed Jul 16, 2003 5:55 pm    Post subject: Re: Retrieve visitors IP Address Reply with quote

aprelium wrote:
You don't even need a script. You can use SSI to do that.

Create a HTML page and change its extension from .html to .shtml . Next, insert in the HTML code the following code:

Code:

Your IP is <!-- #echo var="REMOTE_ADDR" -->


When someone browses this .shtml page, he/she'll see his IP.

Cool....

Humm... I wonder if that what he looking for, though.
_________________
CapFusion,...
Back to top View user's profile Send private message
jerstra
-


Joined: 15 Jul 2003
Posts: 2

PostPosted: Wed Jul 16, 2003 8:58 pm    Post subject: Re: Retrieve visitors IP Address Reply with quote

[quote="aprelium"]You don't even need a script. You can use SSI to do that.

Create a HTML page and change its extension from .html to .shtml . Next, insert in the HTML code the following code:

[code]
Your IP is <!-- #echo var="REMOTE_ADDR" -->
[/code]

When someone browses this .shtml page, he/she'll see his IP.[/quote]


Thanx, that was what i was looking for!
It works.
Back to top View user's profile Send private message
Gatewayy
-


Joined: 15 Mar 2003
Posts: 109

PostPosted: Thu Jul 17, 2003 3:53 am    Post subject: Reply with quote

I believe that he/she just wants to gereate a list of IPs that view the port that the web server is running on.
_________________
-=Gatewayy=-

My Abyss site!

http://crashhappy.gatewayy.net
Back to top View user's profile Send private message Send e-mail
CapFusion
-


Joined: 18 May 2003
Posts: 617
Location: Lost in Abyss' Dungeon

PostPosted: Fri Jul 18, 2003 11:06 pm    Post subject: Reply with quote

Gatewayy wrote:
I believe that he/she just wants to gereate a list of IPs that view the port that the web server is running on.

Couldn't you just view the the IP from the Abyss log?
_________________
CapFusion,...
Back to top View user's profile Send private message
Gatewayy
-


Joined: 15 Mar 2003
Posts: 109

PostPosted: Mon Jul 21, 2003 5:26 am    Post subject: Reply with quote

what fun is that? :D

its more fun to code something or use something like awstats of course ;)
_________________
-=Gatewayy=-

My Abyss site!

http://crashhappy.gatewayy.net
Back to top View user's profile Send private message Send e-mail
CapFusion
-


Joined: 18 May 2003
Posts: 617
Location: Lost in Abyss' Dungeon

PostPosted: Mon Jul 21, 2003 9:22 pm    Post subject: Reply with quote

Gatewayy wrote:
what fun is that? :D

its more fun to code something or use something like awstats of course ;)


Ahhh....
Heeehe..... earlier I did not get the spirit of scripting as mention above.
_________________
CapFusion,...
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Networking Issues All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group