This is a discussion on How to determine local ip address? within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I've tried using ifconfig but I have no access to ROOT user. Another way? Thanks, Jaisol...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| jaisol <jaisol@gmail.com> wrote: > I've tried using ifconfig but I have no access to ROOT user. > > Another way? as someone else said /sbin/ifconfig will work, but for another way: grep IPADDR /etc/dhcpc/dhcpcd-eth0.info > > Thanks, > Jaisol Jack -- To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. -- Theodore Roosevelt |
| |||
| On Thu, 22 May 2008 17:07:24 -0500, Jack McCue wrote: > as someone else said /sbin/ifconfig will work, but for > another way: grep IPADDR /etc/dhcpc/dhcpcd-eth0.info That way makes a BIG assumption that the machine is using DHCP to get it's IP address... Wont' work on a machine configured for a static IP (like all of mine, for example). -- "Ubuntu" -- an African word, meaning "Slackware is too hard for me". Now filtering out all posts originating from Google Groups. The Usenet Improvement Project: http://improve-usenet.org |
| |||
| jaisol wrote: > I've tried using ifconfig but I have no access to ROOT user. So far we have /sbin/ifconfig and /etc/dhcpc/dhcpcd-eth0.info. Here are some other places to look - /etc/hosts - x=`uname -n`; ping $x - `netstat --inet` - /proc/net/tcp (note the byte order may not be what you expect) |
| |||
| D Herring <dherring@at.tentpost.dot.com> wrote: > - x=`uname -n`; ping $x Or even more simple: ping `uname -n` regards Henrik -- The address in the header is only to prevent spam. My real address is: hc3(at)poolhem.se Examples of addresses which go to spammers: root@localhost postmaster@localhost |
| |||
| Henrik Carlqvist wrote: > D Herring <dherring@at.tentpost.dot.com> wrote: >> - x=`uname -n`; ping $x > > Or even more simple: > > ping `uname -n` > > regards Henrik huh wouldn't that just ping the loopback interface ? |
| |||
| Hallo, jaisol, Du meintest am 22.05.08: > I've tried using ifconfig but I have no access to ROOT user. > Another way? Do you mean that IP address which is shown to users from outside? Try lynx myip.dk or lynx myip.nl Or do you mean the IP address which is used in the LAN? Viele Gruesse Helmut "Ubuntu" - an African word, meaning "Slackware is too hard for me". |
| |||
| D Herring <dherring@at.tentpost.dot.com> wrote: >Here are some other places to look Here's another one, albeit less "standard": $ resolveip -s `hostname` 192.168.1.2 resolveip is a util packaged with mysql; never heard of it until now. -Beej |
| ||||
| Hallo, Beej, Du meintest am 23.05.08: > Here's another one, albeit less "standard": > $ resolveip -s `hostname` > 192.168.1.2 > resolveip is a util packaged with mysql; never heard of it until now. Very nice! Viele Gruesse Helmut "Ubuntu" - an African word, meaning "Slackware is too hard for me". |