User Control Panel
Advertisements

HELP US, HELP YOU!

IP service

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help
View unanswered posts
Author Message
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Thu Apr 15, 2004 12:00 am    Post subject: Reply with quote

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
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Thu Apr 15, 2004 12:04 am    Post subject: Reply with quote

no it wouldent work it would print your ip

use the ft thing
Back to top
zander
God Like
God Like


Joined: 14 Jan 2004
Posts: 540
Location: england
Reputation: 66.6

PostPosted: Thu Apr 15, 2004 9:48 am    Post subject: Reply with quote

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
Member


Joined: 02 Jan 2004
Posts: 111

Reputation: 30.8Reputation: 30.8Reputation: 30.8

PostPosted: Thu Apr 15, 2004 9:58 am    Post subject: Reply with quote

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
God Like


Joined: 14 Jan 2004
Posts: 540
Location: england
Reputation: 66.6

PostPosted: Thu Apr 15, 2004 11:37 am    Post subject: Reply with quote

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
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Apr 15, 2004 1:21 pm    Post subject: Reply with quote

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
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Thu Apr 15, 2004 1:47 pm    Post subject: Reply with quote

Code:
<?php<br />echo "Your IP = $REMOTE_ADDR";<br />php?>
Back to top
JoeX
Agent
Agent


Joined: 02 Jan 2004
Posts: 2153

Reputation: 72.7

PostPosted: Thu Apr 15, 2004 1:48 pm    Post subject: Reply with quote

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
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Thu Apr 15, 2004 1:52 pm    Post subject: Reply with quote

You gave me somat else ages ago ....that one i typed up quickly as i rememberd $REMOTE_ADDR
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Apr 15, 2004 1:54 pm    Post subject: Reply with quote

Either way it's only going to give you *your (or your bot's host's)* IP address and not the person using the command.
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Code Help All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group