LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2013, 02:11 AM   #16
unclesamcrazy
Member
 
Registered: May 2013
Posts: 187

Original Poster
Rep: Reputation: 1

Quote:
Originally Posted by frankbell View Post
Try this:

Code:
curl ifconfig.me
or this:

Code:
curl ifconfig.me/host
I heard about it on smlr.
Thank you frankbell, that is the exact thing I was searching.
I want to store the IP in variable and this is the perfect command even I have not to use sed or awk to detect only IP string because it prints only IP.

Thanks again.

Thanks suicidaleggroll

Sorry I did not see the link you sent to me, I saw only php code and it was not working for me but link gave the same solution.

Thank you to you too for getting my question.

Last edited by unclesamcrazy; 12-04-2013 at 02:44 AM.
 
Old 12-08-2013, 01:07 PM   #17
borgy95
Member
 
Registered: Mar 2012
Location: England
Distribution: Debian, Kali, CentOS 7
Posts: 64

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
That's exactly what the OP is looking for. He clearly does not want the machine's local IP, I don't know why people keep giving him instructions on how to retrieve what he's explicitly said he does not want.
Clearly it wasn't that clear if so many misunderstood him.

Last edited by borgy95; 12-08-2013 at 01:08 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with find command and rar/unrar command line krakatoa1 *BSD 6 09-11-2012 04:21 PM
Need to find a Command Line Server Book...not GUI!!! ochieman2000 Linux - Server 13 02-08-2012 07:03 AM
ftp to Linux server using One Line command shipon_97 Linux - Newbie 3 08-28-2007 05:46 AM
how to find max memory usage for process in Linux by command line kashameni Linux - Newbie 9 06-01-2007 02:39 AM
Command line looks like static BShocked Mandriva 3 10-25-2005 08:59 AM


All times are GMT -5. The time now is 06:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration