View your Internet IP address in cmd (command line) in the LAN
By clin003 at 200704122114 from: http://blog.csdn.net/clin003
The principle is as follows: When you browse http://members.3322.org/dyndns/getip, your public IP address will be returned.
In Linux
Using wget http://members.3322.org/dyndns/getip
Then Cat getip is used to view its own IP address (in win, type getip can be used)
------------------------------
By clin003 at 200704122114 from: http://blog.csdn.net/clin003
The above is the IP obtained through the wget Tool
The following code uses NC and telnet to obtain the same effect.
Let's see:
C:/NC> NC members.3322.org 80
GET/dyndns/getip HTTP/1.1
HOST: members.3322.org
HTTP/1.1 200 OK
Date: Thu, 12 Apr 2007 12:52:22 GMT
Server: Apache/1.3.29 (UNIX) resin/2.1.11
Transfer-encoding: chunked
Content-Type: text/plain
C
×××. ××. ×. ××
0
C:/NC>
You can use Telnet to replace NC. The NC is used directly,
It's just that the Telnet was not obvious at the beginning (the input ran above at once, and later I found that Telnet can also replace the NC here)
I have changed my IP address.
Below are my two, haha
View your Internet IP address in cmd (command line) in the LAN
By clin003 at 200704122114 from: http://blog.csdn.net/clin003