LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-26-2015, 11:45 PM   #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, 12:57 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

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

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 02: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, 03:00 AM   #5
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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, 03:01 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 09:03 AM   #7
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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, 09:07 AM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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, 10:21 AM   #9
JeremyBoden
Senior Member
 
Registered: Nov 2011
Location: London, UK
Distribution: Debian
Posts: 1,947

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

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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



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 06:29 AM
[SOLVED] Bash Issue with Find Script: find paths must precede expression: *.txt JockVSJock Programming 4 01-06-2014 09: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 07:37 AM
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 06:19 AM
Find/grep/wc command to find matching files, print filename and word count dbasch Linux - Newbie 10 09-14-2009 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:13 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
Open Source Consulting | Domain Registration