Sponsored Content
Operating Systems OS X (Apple) Getting the External IP Address of your Computer and Storing it in a File Post 302221002 by tlarkin on Saturday 2nd of August 2008 10:12:56 PM
Old 08-02-2008
I wrote a script for someone to output the network information of a client machine to a text file. It doesn't display the external IP, but I am sure it can be tweaked to do so.

Code:
#!/bin/sh

/usr/sbin/networksetup -getinfo Ethernet | open -t -a

If running the command manually you need sudo, but DYNDNS.org is probably a better solution.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Connecting an external SCSI drive to a unix computer

I am interested in booting up my unix computer by connecting an external SCSI drive( intergraph) to it. The unix box is also an intergraph computer. Whenever I boot it, it gives me an error that says Drive not ready, Insert Boot Diskette in A. What am I doing wrong? Any input would be... (3 Replies)
Discussion started by: teruotor
3 Replies

2. HP-UX

Connecting To An External Network Using A logical (PACKAGE) IP Address

Hie everyone, I am currently facing a problem whereby I can not connect to an external network from a package ip address on a HP-UX cluster. Below is the illustration: Primary Server IP Address : n.n.n.202 Secondary Server IP Address : n.n.n.212 Package IP Address : n.n.n.211 ... (1 Reply)
Discussion started by: cchilenga
1 Replies

3. IP Networking

Obtaining your external IP address using a Unix Utility

Hello, this is my first post on the Unix forums. This is something that's been bothering me for a while, is there any particular UNIX/Linux application that will allow you to see you external IP address? :confused: ( The address beyond your router ) Thank you in advance, I could not find a... (4 Replies)
Discussion started by: inquen
4 Replies

4. IP Networking

How to find the IP address of a computer that I am connected to?

Hi all, One of my computers (an iMac) was recently stolen, but I have been able to connect to it over the internet through Apple's 'back to my mac' feature. In order for the police to find these people they need to know the IP address of the stolen computer. I suspect that I will have find the... (6 Replies)
Discussion started by: RJFoulston
6 Replies

5. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

6. UNIX for Dummies Questions & Answers

Storing PDF File

Hi, We have generated Some BO reports and These BO reports Needs to be stored in PDF File format in unix server. Will Unix Support to store PDF Files ? Many Thanks Sashu (1 Reply)
Discussion started by: Sashanth_S
1 Replies

7. OS X (Apple)

mailx to external email address

Hi, How can I use "mailx" command to send message to an email address like this? echo "This email body" | mailx -s "my subject" "email@hostname.com" There may be some setup required in sendmail or postfix?? OS = Snow Leopard 10.6 (4 Replies)
Discussion started by: FlyingSquirrel
4 Replies

8. Shell Programming and Scripting

External IP Address of Linux Server

Hi, I am trying to find the external IP address of a server "XXX". I logged into server "XXX" and executed nslookup XXX. output number is 123.23.23.45 Later, i have executed "curl http://whatismyip.org". This time i got a different number 611.34.63.22 Out of these two numbers, what number... (1 Reply)
Discussion started by: forums123456
1 Replies

9. IP Networking

Ping domain indicates the external ip address and not the local ip

when i execute from local machine ping domainname i get the external ip address but i am on local dns and i expect the local ip address.. using nslookup : no problem so i cannot find why... thanks (2 Replies)
Discussion started by: activedms
2 Replies

10. UNIX for Beginners Questions & Answers

Finding specific string in file and storing in another file

Text in input file is like this <title> <band height="21" isSplitAllowed="true" > <staticText> <reportElement x="1" y="1" width="313" height="20" key="staticText-1"/> <box></box> <textElement> <font fontName="Arial" pdfFontName="Helvetica-Bold"... (4 Replies)
Discussion started by: aankita30
4 Replies
lsmsa(8)						      System Manager's Manual							  lsmsa(8)

NAME
lsmsa - Starts the Storage Administrator (SA) graphical user interface (GUI) SYNOPSIS
/usr/bin/lsmsa DESCRIPTION
SA is the graphical user interface for LSM. SA runs on a Tru64 UNIX system on which LSM is initialized and running. The SA client runs on any machine that supports the Java Runtime Environment. Issue the lsmsa command to display the SA main window. This window serves both as the starting point for all SA GUI-managed tasks and as a monitor for LSM file status. When the main window is displayed, a hierarchical view of LSM objects is presented. Clicking on an object dis- plays the objects of that type and a table of information about them. The SA GUI requires that the SA daemon be running. It is automatically started at boot time. Under normal conditions, the daemon does not need to be run manually. However, if SA does not connect to the server, stop the SA daemon by entering: /sbin/init.d/lsmsa stop Restart the daemon, by entering: /sbin/init.d/lsmsa start Then run /usr/bin/lsmsa as before. RESTRICTIONS
To use this utility, you must be the root user or be a member of the LSMSA administration group in the /etc/group file (lsmsa_admin by default). In addition, you must register the Advanced File System Utilities license. FILES
The SA preferences file stored in the user's home directory. SEE ALSO
lsmsad(8), volintro(8) lsmsa(8)
All times are GMT -4. The time now is 06:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy