|
| Author |
Message |
Addict Not Yet a God

Joined: 21 Jan 2004 Posts: 473
   
|
Posted: Thu Apr 15, 2004 12:00 am Post subject: |
|
|
Is there a service that can reture with the users IP addy? Like if someone types #IP it would return with there IP addy? Like http://whatismyipaddress.com
SORRY ABOUT THE SAME 2 TOPICS! |
|
| Back to top |
|
 |
Calum Not Yet a God

Joined: 21 Feb 2004 Posts: 373 Location: england
   
|
Posted: Thu Apr 15, 2004 12:04 am Post subject: |
|
|
no it wouldent work it would print your ip
use the ft thing |
|
| Back to top |
|
 |
zander God Like

Joined: 14 Jan 2004 Posts: 540 Location: england
 
|
Posted: Thu Apr 15, 2004 9:48 am Post subject: |
|
|
| you could make a command so when they type #myip it gives them the following link current ip address and then that gives them there current ip address |
|
| Back to top |
|
 |
Lord Sephiroth Member

Joined: 02 Jan 2004 Posts: 111
   
|
Posted: Thu Apr 15, 2004 9:58 am Post subject: |
|
|
Like dd you do #myip *lazy* send it to them and then *lazy* get there ip like when you do the chat
" PLease accept the file blah!"
just do the same of that and not tranfser it into the chatroom |
|
| Back to top |
|
 |
zander God Like

Joined: 14 Jan 2004 Posts: 540 Location: england
 
|
Posted: Thu Apr 15, 2004 11:37 am Post subject: |
|
|
| Code: | | Like dd you do #myip *lazy* send it to them and then *lazy* get there ip like when you do the chat <br /><br />" PLease accept the file blah!" <br /><br />just do the same of that and not tranfser it into the chatroom |
Translating into english
Like Danger Dog you do .myip you send it to them and then youget there ip address like when you do it to get into the chatroom were it says please accept the file to enter into the chatroom but instead of taking them to the chatroom just display there ip address |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Thu Apr 15, 2004 1:21 pm Post subject: |
|
|
You can just make a bot service in Perl, the code would be really simple:
| Code: | | #!/usr/bin/perl<br /><br />print "Content-Type: text/plain \*lazy*\n\*lazy*\n";<br />print $ENV{REMOTE_ADDR}; |
And then you could just have your bot do
| Code: | | my $ip = get "http://site/ip.pl"; |
Wait... no, that would just get your local IP.
Anyhow, I might do that for my HTTP bot, so the user can easily find out what their external IP is instead of it saying like "Your bot is available at " _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
mat007 Almost An Agent

Joined: 12 Jan 2004 Posts: 1375
   votes: 2
|
Posted: Thu Apr 15, 2004 1:47 pm Post subject: |
|
|
| Code: | | <?php<br />echo "Your IP = $REMOTE_ADDR";<br />php?> |
|
|
| Back to top |
|
 |
JoeX Agent

Joined: 02 Jan 2004 Posts: 2153
 
|
Posted: Thu Apr 15, 2004 1:48 pm Post subject: |
|
|
QUOTE(Mat007 @ Apr 15 2004, 05:47 AM) | Code: | | <?php<br />echo "Your IP = $REMOTE_ADDR";<br />php?> | | matt thats the code i gavedyou before
Plus: He prob wanted it to be perl _________________ Heroes NBC |