Current location - Quotes Website - Collection of slogans - How to get the remote gateway address?
How to get the remote gateway address?
Method 1: Query the network management interface of the network.

Because there is a billing system in IPv4, if you leave the office/lab and log in to the network billing system without shutting it down, then your management interface will have the IP address for logging in to the computer.

Method 2: Use the service of existing software-take Pt service as an example.

Friends who often play Pt (Private torrent) must be familiar with this method. The IP implanted in the computer will be recorded in the personal information interface of Pt website. We use the IPv6/IPv4 address in this record (most of the PT records of Education Network are IPv6 addresses, and most of the public network records are IPv4 addresses) to log in to the remote desktop connection. Please note that most of the addresses recorded on the PT website include IP addresses and port numbers. The port number should be deleted.

This method is to use Utorrent software (all clients allowed by other Pt websites) to set it to start automatically (at least planting a seed, of course).

Method 3: Self-programming-Take Python program as an example

Life is short. I use python. Python is an explanatory scripting language, which is easy to learn. Here I use Python to call the SMTP service of the mailbox to send mail, automatically get the local IP address and send it by mail. And set the startup to automatic startup. At startup, python programs will automatically start through batch programs, get IP and send emails. I will give the source code of Py below, and you need to pay attention to the following steps:

Step 1: Python is successfully installed on the remote computer, and the software package related to sending e-mail is installed (see the title of the Py code below). Python version should be version 3.0 of X.

Step 2: For the mailbox, the mailbox should be set to enable SMTP service.