LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-27-2015, 12:45 AM   #1
AvinashSam
LQ Newbie
 
Registered: Jan 2015
Location: India
Distribution: Kali
Posts: 11

Rep: Reputation: Disabled
How to find IP?


How to find another PC IP address not in a LAN or WAN network... I mean how to find others IP address during chatting like fb or others
 
Old 02-27-2015, 01:57 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,121

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
ask the user on the other side to check it. But it highly depends on the OS.
 
Old 02-27-2015, 06:49 AM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
Simple answer: You can't.
More complex answer: Which IP address, the public IP address of their network or network local? In most situatuions nowadays these are different.
What I would do to find the public IP: Post a picture that only they can see which is hosted on a machine I control and check the logs for the IP address which opened it.
Of course, I have to ask why you would want to do this?
 
Old 03-01-2015, 03:56 AM   #4
AvinashSam
LQ Newbie
 
Registered: Jan 2015
Location: India
Distribution: Kali
Posts: 11

Original Poster
Rep: Reputation: Disabled
How to find IP?

just to know only others IP
 
Old 03-01-2015, 04:00 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,053

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
That avoids being an answer to the question 'Which IP address' by quite some distance.

I'm not sure what you intend doing with this, but you probably can't do it.
 
Old 03-01-2015, 04:01 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
Quote:
Originally Posted by AvinashSam View Post
just to know only others IP
You have been given two options that work -- ask the person for their IP address or embed an image or other resource in a web page from a server you control.
There are no other ways. You cannot generally determine another persons IP address from something like Facebook.
Perhaps if you expanded on what you are trying to achieve and why there would be a more suitable answer somebody can give.
 
Old 03-01-2015, 10:03 AM   #7
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
You could run something like wireshark - a low level protocol analyzer.
Provided you have a direct person-person connection (no proxies, facebook, twitter etc) this would work.

But only to the extent of giving you their current public-facing IP address of their LAN.
This address is liable to change at the whim of their ISP.

The distant person is probably behind a NAT router, with a non-routable address.
For example, my local ip address is 192.168.1.7 - but you can't find that out.
 
Old 03-01-2015, 10:07 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
It did occur to me that IRC gives out the public-facing IP address of everyone as they join -- so that could be used.
Again, though, as mentioned above this is the public facing IP only and may be subject to change at any time. Though I found my ISP gave me the same IP address for over 5 years and it only changed recently when I got a new MODEM. Of course, my phone can change IP address one minute to the next in extreme circumstances.
 
Old 03-01-2015, 11:21 AM   #9
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
You could use geo-location lookup to discover the vague location of the remote person.
 
Old 03-01-2015, 12:21 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,004

Rep: Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620Reputation: 1620
Quote:
Originally Posted by JeremyBoden View Post
You could use geo-location lookup to discover the vague location of the remote person.
Indeed. I hate IRC for broadcasting my IP for that reason, amongst others. I've found, from using IRC and checking server logs, that geolocation tends to be accurate enough to give the town a person is located in as long as they're using a home ISP. Of course, at work I browse through another city and on this mobile device I tend to connect through Canada and often get served google.nl.
 
  


Reply

Tags
ip address


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
Old School -- gdbmtool & dbmutil -- can't find RPMs and can't find Source spudzy Linux - Software 3 09-27-2014 07:29 AM
[SOLVED] Bash Issue with Find Script: find paths must precede expression: *.txt JockVSJock Programming 4 01-06-2014 10:03 PM
[SOLVED] Find URL in Debian package index via awk/sed (=find a line, then search from there) maddes.b Linux - Software 11 06-28-2013 08:37 AM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 07:19 AM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 06:55 PM


All times are GMT -5. The time now is 10:12 AM.

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