Local IP address?

Bob Nielsen nielsen at oz.net
Wed Feb 1 14:04:18 UTC 2006


On Feb 1, 2006, at 5:46 AM, Dave M G wrote:

> Ubuntu Users,
>
> This seems to be one of those questions so simple that no one feels  
> the need to provide the information.
>
> I want to know how to be able to find out what my *local* IP  
> address is. I have a router which automatically assigns an IP  
> address to each computer hooked into it. I know my computer is in  
> the range of 192.168.0.???. But the last number is something  
> between 1 and 4, and I'm not sure what.
>
> I've looked around on the net and I can easily find out my address  
> as seen from out on the internet, some completely random,  
> dynamically number assigned at my Internet Provider. But that's not  
> what I need to know.
>
> I need to know exactly what my LAN IP address is so that I can  
> assign port forwarding to my computer.
>
> So, how do I do that?
>

Type the 'ifconfig' command from a terminal window.

Possibly if you reboot your computer the router will assign a  
different address.  Some routers permit you to tie an IP address to  
the MAC address of your computer's network interface which would  
avoid this.  Alternately, you can assign a static IP to your computer  
(preferably outside the range of those assigned by DHCP) by using the  
network configuration tool or editing /etc/network/interfaces.







More information about the ubuntu-users mailing list