Finding LocalHost IP Address


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Finding LocalHost IP Address
# 1  
Old 11-14-2003
Finding LocalHost IP Address

I am writing a program that need to be run on several machines. I am running UNIX and wanted to know if there is a command similar to ipconfig (in DOS) that would return the IP Address of the machine that I am working on. (Not just the loopback address of 127.0.0.1).
# 2  
Old 11-14-2003
ifconfig -a

Sorry, I just found it. "ifconfig -a" all settings or "ifconfig <card>" for just one card.

Thanks.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cannot find localhost

I get a "not found" error from this localhost/choice.php ethan@meow:~$ ping 127.0.0.1 PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.025 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.036 m and this ethan@meow:~$ mysql -u... (4 Replies)
Discussion started by: Meow613
4 Replies

2. Debian

Waiting for localhost.

I am getting the message - waiting for localhost. Here are some diagnostic steps I have tried .... root@meow:/home/ethan# cat /var/www/cgi-bin/httpd.conf ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/jkj ServerName 127.0.0.1:80 Listen xx.xx.xx.xx:80 Listen 127.0.0.1:80 ... (1 Reply)
Discussion started by: Meow613
1 Replies

3. Shell Programming and Scripting

Finding if my IP address belongs in a Class C group

I need help with a tcl code. I have a variable "myIP" which reads IP address from socket. How do I use regex to find out if it belongs to a group for e.g., 50.65.75.240/28 or 50.65.75.128/25 etc. (2 Replies)
Discussion started by: ampak
2 Replies

4. UNIX for Dummies Questions & Answers

Finding e-mail address using "find" command

any useful command to find and e-mail address hardcoded into a cfg file on an specific server? I already tried with:: find . -type f | xargs grep -l "nobody@foundstone.com" Thanks!! (1 Reply)
Discussion started by: JLo5621
1 Replies

5. UNIX for Advanced & Expert Users

DIG uses localhost

Hi, I have these entries in the /etc/esolv.conf: ------------ domain xxxxxx search yyyyyy nameserver 127.0.0.1 nameserver aaaaaaaaaaaaaaaa nameserver bbbbbbbbbbbbbbbb ------------- When I use 'dig' or 'nslookup' command, like 'dig yahoo.com' it uses the localhost as the server. I... (2 Replies)
Discussion started by: chaandana
2 Replies

6. Filesystems, Disks and Memory

Finding IP address of the system hosting an NAS

Hi, On Solaris 5.8 when I run the command df -F nfs one of the outputs I am getting is: pun-filer-01:/vol/Unix/punehome/vineetd out of which "pun-filer-01" is hostname of the machine on which the NAS device is hosted and /vol/Unix/punehome/vineetd is the mount point. I am interested in... (2 Replies)
Discussion started by: vineetd
2 Replies

7. Shell Programming and Scripting

Finding an email address

Hi all, I have a file with X number of lines. Somewhere within each line will be an email address following the format: <telephone_number>@domain.net Each line is not a set length and there are no delimiters to work with. I want to write a script that extracts the telephone number... (3 Replies)
Discussion started by: mandriver
3 Replies

8. UNIX for Dummies Questions & Answers

Finding an IP address

Using either % nslookup www.computerhope.com or % host www.computerhope.com Is there a way to single out only the IP address and not all the other information that these commands return by using the options or something of this nature. For Example I would like to do this Echo... (1 Reply)
Discussion started by: slim1509
1 Replies

9. UNIX for Dummies Questions & Answers

Finding IP address of the workstation

Hi, I have the following requirement. I want to configure in the .profile file of my user id in such a way that it loads a particular set of command when i log in from a particular machine and another set when i log into the server from a different machine. What is the command to get the... (1 Reply)
Discussion started by: Vijay Srinivasa
1 Replies

10. IP Networking

Finding an x25 address for a server

I am trying to find the x25 address of a server. Presumably this is stored in some sort of config file - and while I can find the IP and OSI addresses - I cannot work out where to find the x25 address.....any ideas? (Unix on Solaris) (1 Reply)
Discussion started by: peter.herlihy
1 Replies
Login or Register to Ask a Question