How to view my IP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to view my IP
# 1  
Old 06-24-2007
How to view my IP

I run Ubuntu server 7.04, to learn some *nix. I set up LAMP, DNS and FTP but I don't know how to view my ip. now I tried ifconfig but that didnt tell me what I wanted to know.

so by what way can I do this without a gui and a website like ipchicken?
# 2  
Old 06-24-2007
What did ifconfig tell you? Can you please quote the output?
# 3  
Old 06-24-2007
eth0

Link encap:ethern3t
inet addr:192.168.2.2 Bcast: 192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::201:2ff:fe03:405/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric:1
...

Hop this is enough.
I have it connected and sharing internet with my mac if that helps
# 4  
Old 06-25-2007
Isn't this the IP?

Quote:
Originally Posted by blowFish@ubuntu
eth0
inet addr:192.168.2.2 Bcast: 192.168.2.255 Mask:255.255.255.0
# 5  
Old 06-25-2007
oops... Thats there because of my router... Haven't gone into net+ study yet so I don't understand how the router manages the IP from my ISP.

Im guessing that the router changes the IP somehow for each computer on the network?
# 6  
Old 06-25-2007
Quote:
Originally Posted by blowFish@ubuntu
oops... Thats there because of my router... Haven't gone into net+ study yet so I don't understand how the router manages the IP from my ISP.

Im guessing that the router changes the IP somehow for each computer on the network?
I suggest you read up on

DHCP - this is typically how an ADSL router will allocate addresses

NAT - how the router will change addresses between local and internet domains

DNS - how name mapping works, and that the ADSL router may act as a DNS proxy

Last edited by porter; 06-25-2007 at 02:32 PM..
# 7  
Old 06-25-2007
ifconfig shows the actual IP assigned to your interface. So if your router performs NAT, it is natural that you see private IPs on your system. As for the IP address at the router, normally a host in the network will not know about that address at all, because it will be replaced as part of NAT at the router.
 
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