最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to trace friend's ip address while chating - Stack Overflow

programmeradmin1浏览0评论

How do I trace my friends IP address while chating (in facebook,gmail ) ?

Can we do this in jquery ?

Please let me know your pointers.

Thanks,

-Pravin

How do I trace my friends IP address while chating (in facebook,gmail ) ?

Can we do this in jquery ?

Please let me know your pointers.

Thanks,

-Pravin

Share Improve this question asked Jan 18, 2011 at 14:31 pravinpravin 2,1738 gold badges37 silver badges50 bronze badges 2
  • 5 Tell your friend to go to http://www.whatsmyip/ then have your friend read off the IP address to you? – In silico Commented Jan 18, 2011 at 14:34
  • 3 Write a GUI in Visual Basic to track... – Jimmy Commented Jan 18, 2011 at 14:44
Add a ment  | 

4 Answers 4

Reset to default 5

No you cannot because your javascript chat application does not municate directly with your friend's browser. It all goes through the server side chat application (gmail, fb... etc) so you are only municating with that IP which municates with all the rest.

Of course the server side chat application could be somehow revealing the chat participants IP addresses but this is highly unlikely in any web based chat application that it's used in production right now.

The easiest way to find out the IP of a chat participant is to make him/her click on link for which you'll be monitoring http traffic. I hope it's for a good reason :)

I do not think it is possible since you both connected to the chatting server and all information go through them and there are no direct link between you and your friend.

You can't from a browser. The chat protocol is implemented on the server side, and your browser doesn't know the IP address of your correspondant.

As others have said, you can't do this directly. The only way around it then is to give your friend a link to a script on your server that then alerts you of the IP address.

Basically, such a script would check the remote address, and then log it somewhere or e-mail it to you. That script might then return an image or redirect somewhere so that the person you sent the link to isn't so aware of what happened.

You should also know that the remote address isn't necessarily the IP of your friend. It could be a proxy server, or something else getting in the way. It's more mon than you might think.

发布评论

评论列表(0)

  1. 暂无评论