How to view my IP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to view my IP
# 8  
Old 06-25-2007
You'd need to log onto your router to find the IP address on the WAN interface (the outside of your router pointed towards the interweb...)
# 9  
Old 06-25-2007
Ok so I guess Ill be digging into my router again :/
# 10  
Old 06-26-2007
You can do a traceroute to an address in the Internet (from your server) and get WAN info.
# 11  
Old 06-26-2007
Code:
$ telnet sendmail.org 25
Trying 209.246.26.22...
Connected to sendmail.org.
Escape character is '^]'.
220 services.sendmail.org ESMTP Sendmail 8.14.0.Alpha1/8.14.0.Alpha1; Mon, 25 Jun 2007 22:09:42 -0700 (PDT)
HELO localhost
250 services.sendmail.org Hello foo.bar.com [199.199.199.199], pleased to meet you
QUIT
221 2.0.0 services.sendmail.org closing connection
Connection closed by foreign host.

Cheers
ZB
# 12  
Old 06-26-2007
alright I tried the traceroute and (not sure if its suppose to) it showed my private network ip...

I trying the telnet hoojiger now and its taking a long time..

Its getting late so I'll pick this up tomorrow evening.
[edit] the telnet timed out Smilie
# 13  
Old 06-26-2007
Code:
$ curl http://www.zazzybob.com/my_ip/get_my_ip.php 2>/dev/null | sed -n 's/^.*<!--IP-->\([^<]*\)<!--IP-->.*$/\1/p'

Cheers
ZB
# 14  
Old 04-29-2008
Try these two scripts: they just do what they already suggested you, but it can be useful to keep them in your /bin directory :-)

Saverio Bolognani's Home Page - What is my IP?

Ciao,
Saverio
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

View my posts

How can I view a list of my posts.? (5 Replies)
Discussion started by: drew77
5 Replies

2. What is on Your Mind?

Moving from Desktop View to Mobile View

See attached video for a demo on how to move back and forth from the desktop view to the mobile view. Currently this only works for the home page, but I will work on some new PHP code in the future to make this work with the page we are currently on. Edit: The issue with making every page ... (2 Replies)
Discussion started by: Neo
2 Replies

3. UNIX for Dummies Questions & Answers

Can I view an 'at' command?

Hi, One of our users has loads of jobs scheduled. When I do at -l I get a long list of tasks which end in .a Is there anyway I can view what these commands will do? Also, What's the relationship between the 'at' function and the crontab? I can't see any entries in crontab....Cheers (4 Replies)
Discussion started by: Grueben
4 Replies

4. Solaris

Need to view all DB

Hi Gurus, How to view only a database files on solaris. Please do a reply at the earliest. Thanks | P.Bharathiraja (2 Replies)
Discussion started by: bharathiraja
2 Replies

5. HP-UX

How to view socket_udp_rcvbuf_default'value in hp-ux

In the hp-ux 11.31 environment . How can i view the values of below parameters: socket_udp_rcvbuf_default socket_udp_sndbuf_default thanks! (1 Reply)
Discussion started by: robbiezr
1 Replies

6. UNIX for Dummies Questions & Answers

view others process

Hello, I hope this is an easy question. I have a few users who login through SSH and some times their bash session is using 100% cpu even though its been "idle" according to who for several days. I would like to know what command the user ran in their bash session to peg the cpu out but am... (6 Replies)
Discussion started by: taheri6
6 Replies

7. UNIX for Dummies Questions & Answers

how do I view a jpeg?

I use gv or ggv to view a .pdf, or .ps file. What will allow me to see a jpeg file? If it matters, I'm using xterm on a PowerBook G4. (0 Replies)
Discussion started by: dsstamps
0 Replies

8. UNIX for Dummies Questions & Answers

view all others terminals

i'm responsible for maintenance at my place and would like to watch all terminals in front me.i log myself into one terminal, but would like to view copy of other's terminals visible to me, it is just like for audit/security watch. (2 Replies)
Discussion started by: vkandati
2 Replies

9. UNIX for Dummies Questions & Answers

DBM View

Can someone please recommend a UNIX based utility (Not Web) to view a DBM file? Michael (1 Reply)
Discussion started by: schafferm
1 Replies
Login or Register to Ask a Question