View your Internet IP address in cmd (command line) in the LAN

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.