China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-25 20:01
中国DOS联盟论坛 » 其它操作系统综合讨论区 » Using DOS commands to check a QQ friend's IP address [repost] View 1,236 Replies 6
Original Poster Posted 2003-06-11 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
Author: Canglangke / Pacific Network Institute





  Do you really need to go through this much trouble to check a QQ friend's IP address? Wouldn't it be enough to just patch QQ? True, that is very simple, but what if it's a newly released QQ and the "patch" hasn't been made yet? Then use software like IpSniper. But what if you don't have it on hand and urgently need to check it? You could use other software, for example... alright, no matter how you put it, it's still somebody else's software. So why not try DOS commands? It's simple, convenient, and very environmentally friendly (unlike application software, which has to be installed separately and take up hard disk space, and also uses up the same resources when running).

  Enough talk, let's officially begin. First, use sweet talk, sugar-coated shells, or similar weapons to "invite" the person whose IP address you want to know into QQ's "two-person world." Next, open a DOS window (under Win9x it's called DOS; under Win2000 it's called the command prompt). Enter the following command:

  netstat -n

  You will see:

  Active Connections
  Proto   Local Address   Foreign Address    State
  TCP  202.109.34.78:1200  202.121.139.35:61555  ESTABLISHED
  TCP  202.109.34.78:2694  202.109.72.40:6667   ESTABLISHED
  TCP  202.109.34.78:4869  211.202.1.227:23    ESTABLISHED

  Good grief, so many IPs! Which one is the one we're looking for? Don't worry, keep reading. Now exit the "two-person world," then enter this once again under DOS:

  netstat -n

  You will see:

  Active Connections
  Proto   Local Address    Foreign Address    State
  TCP   202.109.34.78:1200  202.121.139.35:61555  TIME_WAIT
  TCP   202.109.34.78:2694  202.109.72.40:6667   ESTABLISHED
  TCP   202.109.34.78:4869  211.202.1.227:23    ESTABLISHED

  Can you see the difference between the two results? Still don't see it? Look carefully, and you will notice:

  Originally: TCP 202.109.34.78:1200 202.121.139.35:61555 ESTABLISHED
  Now: TCP 202.109.34.78:1200 202.121.139.35:61555 TIME_WAIT

  Alright, now you should know, right? That's right! The IP of the person chatting with you is: 202.101.139.35! So how do we know that? Friends, when you're in the "two-person world" sending messages, a connection must naturally be created between the two sides (through the UDP protocol), so at that time it is naturally "ESTABLISHED" (judging from your netstat -n result); and after exiting the "two-person world," the connection is broken, so naturally it becomes "TIME_WAIT."

  Pretty simple, right? This method doesn't use a single external piece of software (netstat is a Windows-built-in external command). Isn't it just as simple, convenient, and environmentally friendly as we said earlier? Why not try it now!



-------------Personal signature---------------
Casting flirtatious glances in secret means the dark night delivers you autumn spinach.
------------------------------------

==============
KO says:
Actually this article doesn't have much to do with DOS, hehe...
It just uses a DOS command. (Even so, it's a Windows DOS command, not a pure DOS command...) And it's also run in a Windows environment.

It would be better to say it's checking QQ IP numbers in a "command-line" way...
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 2 Posted 2003-06-21 00:00 ·  中国 广西 柳州 移动
初级用户
Credits 137
Posts 8
Joined 2003-06-21 00:00
23-year member
UID 5639
Gender Male
Status Offline
Awesome!
Floor 3 Posted 2003-06-22 00:00 ·  中国 河南 郑州 联通
初级用户
Credits 125
Posts 5
Joined 2003-06-22 00:00
23-year member
UID 5709
Gender Male
Status Offline
Floor 4 Posted 2003-06-22 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
You don't need to understand it; you just need to follow the steps and you'll get the above result.
There are many things you only understand after you put them into practice.
You can't understand them just by reading a post and thinking about it with an empty head.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 5 Posted 2003-06-23 00:00 ·  中国 江苏 南京 电信
初级用户
Credits 178
Posts 16
Joined 2003-06-20 00:00
23-year member
UID 5609
Gender Male
Status Offline
Why is it that after I type netstat -n
none of those IP addresses are displayed?》?????


Floor 6 Posted 2003-06-23 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
What system are you using (DOS, win9x, win2000, winxp)?
In what state? (pure DOS, Windows DOS window)
Are you connected to the network or not?
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 7 Posted 2003-07-08 00:00 ·  中国 北京 联通
初级用户
Credits 121
Posts 4
Joined 2003-06-14 00:00
23-year member
UID 5095
Gender Male
Status Offline
It seems netstat -na is what displays numeric IPs; with just -n it displays machine names.
道高一尺 魔高万丈
Forum Jump: