PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > External IP
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

External IP

Réponse
 
LinkBack Outils de la discussion
Vieux 23/04/2008, 01h00   #1
Daniel Ngu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut External IP

Hi,

How do I find out what's the dynamic IP I get when connected
to my ISP? I'm not broadband BTW.

Thanks.

Regards,

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 01h20   #2
Steve Witt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Tue, 22 Apr 2008, Daniel Ngu wrote:

> Hi,
>
> How do I find out what's the dynamic IP I get when connected
> to my ISP? I'm not broadband BTW.
>


How do you connect? Is your computer connected directly to your ISP
connection? Assuming it is Linux box then:

/sbin/ifconfig

will show the IP addresses assigned to your network interfaces.

If you are connecting through a router of some sort (like the Linksys,
Netgear, etc) routers, then you'll have to connect to it and see what
address it got.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 01h30   #3
Andrew Reid
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Tuesday 22 April 2008 19:39, Daniel Ngu wrote:
> Hi,
>
> How do I find out what's the dynamic IP I get when connected
> to my ISP? I'm not broadband BTW.


I use "www.whatsmyip.org", I have NAT at home, and the
"far side" of my DSL modem is a private class-A address
(10.0.something.something), so it's useful to have a utility
that cuts through the crap.

Of course, it does require that you have a working
web browser. If you (or I) were clever, we'd probably
do some tricky tracert thing.

-- A.
--
Andrew Reid / reidac@bellatlantic.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 02h30   #4
Daniel Ngu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On 2008-04-23, Andrew Reid <reidac@bellatlantic.net> wrote:
> On Tuesday 22 April 2008 19:39, Daniel Ngu wrote:
>
> I use "www.whatsmyip.org",


Thanks, tried the URL and it worked. ifconfig on the other hand showed
my internal IP rather.

Regards,

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 05h40   #5
Celejar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Tue, 22 Apr 2008 20:23:40 -0400
Andrew Reid <reidac@bellatlantic.net> wrote:

> On Tuesday 22 April 2008 19:39, Daniel Ngu wrote:
> > Hi,
> >
> > How do I find out what's the dynamic IP I get when connected
> > to my ISP? I'm not broadband BTW.

>
> I use "www.whatsmyip.org", I have NAT at home, and the
> "far side" of my DSL modem is a private class-A address
> (10.0.something.something), so it's useful to have a utility
> that cuts through the crap.
>
> Of course, it does require that you have a working
> web browser. If you (or I) were clever, we'd probably
> do some tricky tracert thing.


ddclient can parse html to read your external IP address from your
router's status page. I don't know if there's a clean way to use that
functionality independently of ddclient itself.

> Andrew Reid / reidac@bellatlantic.net


Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 06h20   #6
Rafael Fontenelle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

2008/4/23, Celejar <celejar@gmail.com>:
>
> On Tue, 22 Apr 2008 20:23:40 -0400
> Andrew Reid <reidac@bellatlantic.net> wrote:
>
> > On Tuesday 22 April 2008 19:39, Daniel Ngu wrote:
> > > Hi,
> > >
> > > How do I find out what's the dynamic IP I get when connected
> > > to my ISP? I'm not broadband BTW.

> >
> > I use "www.whatsmyip.org", I have NAT at home, and the
> > "far side" of my DSL modem is a private class-A address
> > (10.0.something.something), so it's useful to have a utility
> > that cuts through the crap.
> >
> > Of course, it does require that you have a working
> > web browser. If you (or I) were clever, we'd probably
> > do some tricky tracert thing.

>
>
> ddclient can parse html to read your external IP address from your
> router's status page. I don't know if there's a clean way to use that
> functionality independently of ddclient itself.
>
>
> > Andrew Reid / reidac@bellatlantic.net

>
>
> Celejar
>
> --
> mailmin.sourceforge.net - remote access via secure (OpenPGP) email
> ssuds.sourceforge.net - A Simple Sudoku Solver and Generator
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>

I can see that you're running behind a router or something similar. If you
want to use a shell script to return the IP to the stdout, you could
probably use 'curl'.

1- If you don't have curl, you would have to install it:

[sudo] apt-get install curl

2- Get one of these sites that return your external IP (You know no site
like this? just google "what is my IP", without quotes) and create a shell
command. See my example:

$ curl http://www.ip-adress.com/ | grep "My IP: "

Test it and then you put it in a shell script and you're done.

Cheers,

Rafael

  Réponse avec citation
Vieux 23/04/2008, 06h30   #7
Lee Glidewell
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Tuesday 22 April 2008 10:12:41 pm Rafael Fontenelle wrote:
> I can see that you're running behind a router or something similar. If you
> want to use a shell script to return the IP to the stdout, you could
> probably use 'curl'.

I have this feeling that my last response to this thread never made it through
or something.

curl *definitely* works with shell scripts, and like I pointed out,
www.whatismyip.org (not .com) is specifically designed for tools such as
curl. Running that URL as the argument for curl will return only the current
machine's public IP address, with no extra formatting or HTML messiness.
Thus, it is the ideal way of getting this output cleanly. It can even be used
as input, e.g.:
nmap $(curl www.whatismyip.org)

Lee


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 06h30   #8
Rich Healey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lee Glidewell wrote:
> On Tuesday 22 April 2008 10:12:41 pm Rafael Fontenelle wrote:
>> I can see that you're running behind a router or something similar. If you
>> want to use a shell script to return the IP to the stdout, you could
>> probably use 'curl'.

> I have this feeling that my last response to this thread never made it through
> or something.
>
> curl *definitely* works with shell scripts, and like I pointed out,
> www.whatismyip.org (not .com) is specifically designed for tools such as
> curl. Running that URL as the argument for curl will return only the current
> machine's public IP address, with no extra formatting or HTML messiness.
> Thus, it is the ideal way of getting this output cleanly. It can even be used
> as input, e.g.:
> nmap $(curl www.whatismyip.org)
>
> Lee
>
>


My site is now back up.

http://www.psychotik.info/ip.php

Was lazy, did it in php.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDsiILeTfO4yBSAcRAvxxAJ0cg2SS04kUqPeSNOYHk9 2AnV4cIQCfejOm
luz4swnsiXfwQFPeYp6a2BY=
=ohCX
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 06h50   #9
Rich Healey
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Rafael asked for source..

So my stroke of genius follows...


[richo@Webserv ~/public_html]$ cat ip.php
<?PHP
print ($_SERVER['REMOTE_ADDR'])
?>
[richo@Webserv ~/public_html]$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDsvaLeTfO4yBSAcRAo9CAJ0bmXoFJGTByCHjSypWPL +qdS1YlQCeJBwX
XfxyhFjEYMaLhxtx3C+Bc2s=
=L1LC
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 23/04/2008, 07h00   #10
Rafael Fontenelle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

2008/4/23, Rich Healey <healey.rich@gmail.com>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
>
> Rafael asked for source..
>
> So my stroke of genius follows...
>
>
> [richo@Webserv ~/public_html]$ cat ip.php
> <?PHP
> print ($_SERVER['REMOTE_ADDR'])
> ?>
> [richo@Webserv ~/public_html]$
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>
> iD8DBQFIDsvaLeTfO4yBSAcRAo9CAJ0bmXoFJGTByCHjSypWPL +qdS1YlQCeJBwX
> XfxyhFjEYMaLhxtx3C+Bc2s=
> =L1LC
> -----END PGP SIGNATURE-----
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>

Thanks for the info, genius ;-)

Cheers,

Rafael

  Réponse avec citation
Vieux 25/04/2008, 05h00   #11
Kamaraju S Kusumanchi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

Daniel Ngu wrote:

> Hi,
>
> How do I find out what's the dynamic IP I get when connected
> to my ISP? I'm not broadband BTW.
>


I use
links2 -dump checkip.dyndns.org | cut -f2 -d:

raju
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/04/2008, 02h10   #12
L.V.Gandhi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Fri, Apr 25, 2008 at 9:23 AM, Kamaraju S Kusumanchi
<kamaraju@bluebottle.com> wrote:
> Daniel Ngu wrote:
>
> > Hi,
> >
> > How do I find out what's the dynamic IP I get when connected
> > to my ISP? I'm not broadband BTW.
> >

>
> I use
> links2 -dump checkip.dyndns.org | cut -f2 -d:


To which package links2 belongs. How to find out for any command?
--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/04/2008, 02h50   #13
Osamu Aoki
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Sun, Apr 27, 2008 at 06:28:43AM +0530, L.V.Gandhi wrote:
> On Fri, Apr 25, 2008 at 9:23 AM, Kamaraju S Kusumanchi
> <kamaraju@bluebottle.com> wrote:
> > Daniel Ngu wrote:
> >
> > > Hi,
> > >
> > > How do I find out what's the dynamic IP I get when connected
> > > to my ISP? I'm not broadband BTW.
> > >

> >
> > I use
> > links2 -dump checkip.dyndns.org | cut -f2 -d:

>
> To which package links2 belongs. How to find out for any command?


Usually, I rely mostly on my imagination :-) I guess it is links2
package and try finding such in aptitude using "/" and enter "links2".

To be precise, I use apt-file command with grep.

$ apt-file search links2 |grep -e '/links2$'
....

See more in
* http://people.debian.org/~osamu/pub/...fusingaptitude
* http://people.debian.org/~osamu/pub/...etoolslowlevel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/04/2008, 03h50   #14
Kevin Mark
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Sun, Apr 27, 2008 at 06:28:43AM +0530, L.V.Gandhi wrote:
> On Fri, Apr 25, 2008 at 9:23 AM, Kamaraju S Kusumanchi
> <kamaraju@bluebottle.com> wrote:
> > Daniel Ngu wrote:
> >
> > > Hi,
> > >
> > > How do I find out what's the dynamic IP I get when connected
> > > to my ISP? I'm not broadband BTW.
> > >

> >
> > I use
> > links2 -dump checkip.dyndns.org | cut -f2 -d:

>
> To which package links2 belongs. How to find out for any command?


I's try to hack together the above script with wget as it may be on more
system.
-K
--
| .''`. == Debian GNU/Linux == | my web site: |
| : :' : The Universal |mysite.verizon.net/kevin.mark/|
| `. `' Operating System | go to counter.li.org and |
| `- http://www.debian.org/ | be counted! #238656 |
| my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to Debian! |
|_______ Unless I ask to be CCd, assume I am subscribed _______|


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/04/2008, 04h10   #15
Andrew Reid
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Saturday 26 April 2008 20:58, L.V.Gandhi wrote:

>
> To which package links2 belongs. How to find out for any command?


Debian has an awesome search utility at
<http://www.debian.org/distrib/packages>. At the bottom of the
page, there's a "Search the contents of packages" tool, which will
tell you what package a given file comes from.

Alternatively, if you have the Debian-installed Konqueror,
you can use "deb:<packagename>" to find packages (but not
files in packages).

You can also also use the shortcut
"http://packages.debian.org/file:<tail>" to find packages
containing files that end with <tail>.

-- A.
--
Andrew Reid / reidac@bellatlantic.net


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/04/2008, 04h20   #16
Kumar Appaiah
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Sat, Apr 26, 2008 at 11:07:26PM -0400, Andrew Reid wrote:
> Debian has an awesome search utility at
> <http://www.debian.org/distrib/packages>. At the bottom of the
> page, there's a "Search the contents of packages" tool, which will
> tell you what package a given file comes from.
>
> Alternatively, if you have the Debian-installed Konqueror,
> you can use "deb:<packagename>" to find packages (but not
> files in packages).
>
> You can also also use the shortcut
> "http://packages.debian.org/file:<tail>" to find packages
> containing files that end with <tail>.


+1. Please also check out apt-file and dlocate (for installed
packages); they are invaluable in quick searching if you do not have
internet access at all times.

Kumar
--
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIE/I1Sd75awtatOcRAgcWAJ0XCld2yvujtc2AOIfZDsPBWP7U6wCZ AcQd
4/wFfirtz3fhfJjqXypalkk=
=P0zz
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 27/04/2008, 05h40   #17
NN_il_Confusionario
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Sun, Apr 27, 2008 at 10:29:05AM +0900, Osamu Aoki wrote:
> On Sun, Apr 27, 2008 at 06:28:43AM +0530, L.V.Gandhi wrote:
> > To which package links2 belongs. How to find out for any command?

> $ apt-file search links2 |grep -e '/links2$'
> See more in
> * http://people.debian.org/~osamu/pub/...fusingaptitude
> * http://people.debian.org/~osamu/pub/...etoolslowlevel


One can also donwload the file
http://ftp.it.debian.org/debian/dist...ntents-i386.gz
(change with your mirror, distribution and architecture)
and grep in that file:
zgrep bin/links2 ~/ftp.it.debian.org/debian/dists/Debian4.0r3/Contents-i386.gz
usr/bin/links2 net/links2

For installed packages, one can also grep /var/lib/dpkg/info/*.list

--
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Vieux 27/04/2008, 10h00   #18
Andrei Popescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Sun, Apr 27, 2008 at 08:55:41AM +0530, Kumar Appaiah wrote:
> On Sat, Apr 26, 2008 at 11:07:26PM -0400, Andrew Reid wrote:
> > Debian has an awesome search utility at
> > <http://www.debian.org/distrib/packages>. At the bottom of the
> > page, there's a "Search the contents of packages" tool, which will
> > tell you what package a given file comes from.
> >
> > Alternatively, if you have the Debian-installed Konqueror,
> > you can use "deb:<packagename>" to find packages (but not
> > files in packages).
> >
> > You can also also use the shortcut
> > "http://packages.debian.org/file:<tail>" to find packages
> > containing files that end with <tail>.

>
> +1. Please also check out apt-file and dlocate (for installed
> packages); they are invaluable in quick searching if you do not have
> internet access at all times.


One more tip which was not mentioned. 'dpkg -S file-on-system' will
return the package containing that file. It works only for installed
packages, but is (much) faster than apt-file.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD4DBQFIFD43qJyztHCFm9kRAoSZAJipwMQKfCPQ84nZLykEhr TomFl0AKCVyUXO
orun2zJe22gMl/RiHk46Lg==
=F9K5
-----END PGP SIGNATURE-----

  Réponse avec citation
Vieux 29/04/2008, 20h00   #19
Tzafrir Cohen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: External IP

On Sun, Apr 27, 2008 at 10:29:05AM +0900, Osamu Aoki wrote:
> On Sun, Apr 27, 2008 at 06:28:43AM +0530, L.V.Gandhi wrote:
> > On Fri, Apr 25, 2008 at 9:23 AM, Kamaraju S Kusumanchi
> > <kamaraju@bluebottle.com> wrote:
> > > Daniel Ngu wrote:
> > >
> > > > Hi,
> > > >
> > > > How do I find out what's the dynamic IP I get when connected
> > > > to my ISP? I'm not broadband BTW.
> > > >
> > >
> > > I use
> > > links2 -dump checkip.dyndns.org | cut -f2 -d:

> >
> > To which package links2 belongs. How to find out for any command?

>
> Usually, I rely mostly on my imagination :-)


My imagination tells me that in order to find program 'whatever', I'll
first try:

apt-cache search whatever

$ apt-cache search links2
links2 - Web browser running in both graphics and text mode

$ apt-cache search debuild
devscripts - Scripts to make the life of a Debian Package maintainer easier
devscripts-el - Emacs wrappers for the commands in devscripts
pbuilder - personal package builder for Debian packages

--
Tzafrir Cohen | tzafrir@jabber.org | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir@cohens.org.il | | best
ICQ# 16849754 | | friend


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h21.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,27845 seconds with 27 queries