How to find your computer name from the command prompt

Jugo Mobile
By
Jugo Mobile
Jugo Mobile is a platform dedicated to high-quality content in gaming, sports, and tech. Engage with high-quality content and connect with fellow enthusiasts and experts. Explore...
4 Min Read

The Command Prompt is a powerful tool that you can use to do literally everything on your computer. Among other complex processes, Command Prompt allows you to create, move, delete files, and find all important information about your computer components.

Although it is necessary to understand and learn command prompt commands to be able to use this tool in complex processes, some simple but beneficial processes do not require as much computer knowledge.

In some situations, you will need to know the name of your computer. For example, you will need this information if you want to connect your printer to multiple PCs. This can be done very easily using the command prompt and this article will show you how.

How to use the command prompt to find your computer name

Before we start explaining the different ways and commands you can use to find your computer’s name, you need to know how to open the command prompt.

  1. Just click Begin

  2. Guy “cmd” in the search bar. Press Enter and a small black window will appear. That’s your command prompt app.

    1716231642 457 How to find your computer name from the command prompt

  3. Write the command hostname and press Enter.

    1716231642 295 How to find your computer name from the command prompt

After that, your command prompt will display your computer name on the next line.

hostname

The only potential problem here is that you have to be very careful when writing. If you make a typo, the command prompt will not recognize the command and nothing will happen.

Get DNS or FQDN from your computer

To get the full DNS or fully qualified domain name (FQDN) of your computer, use the following commands:

  1. Type this command exactly as shown:

    net config workstation | findstr /C: “Full Computer Name

  2. Get into. The command prompt will display the full DNS name of your computer.

full computer name

Other valuable information you can get from the command prompt

Your computer’s IP address

Another very important piece of information you may need is your computer’s IP address. Of course, the command prompt can help you with this as well.

The following steps will help you find your computer’s IP address in no time:

  1. Open the command prompt.

    1716231643 279 How to find your computer name from the command prompt

  2. Write ipconfig and press Enter.

    1716231643 329 How to find your computer name from the command prompt

  3. Look for “IPv4 address”.

ipconfig

If you are using a VPN (virtual private network) for your work, you will have more information in IPv4 Address.

The IP address of your enterprise domain server

Another interesting command you may want to use is “nslookup”. This command allows you to find the IP address of your company’s domain server:

  1. Guy nslookup Press Space, add your company domain, and press Enter.

    1716231644 419 How to find your computer name from the command prompt

  2. For example, you can use this command on YouTube: nslookup youtube.com

    1716231644 113 How to find your computer name from the command prompt

IP addresses between your computer and your website

The command prompt will print all the server IP addresses between your computer and the website you entered.

  1. Guy tracertAt your command prompt, press the Space key, enter the website you want to visit (or any website of your choice), and press Enter.

    1716231644 606 How to find your computer name from the command prompt

  2. For example, you can write tracert youtube.com to find the IP address of all the servers that “stand” between you and YouTube.

    1716231644 950 How to find your computer name from the command prompt

Start using Command Prompt

As you can see, your computer’s command prompt is a versatile tool that you can use for a variety of tasks. Although these few commands are considered very basic and fundamental, they are a good starting point for those who want to learn more about using the command prompt.

Share This Article
Follow:
Jugo Mobile is a platform dedicated to high-quality content in gaming, sports, and tech. Engage with high-quality content and connect with fellow enthusiasts and experts. Explore the latest trends and innovations in our vibrant community. Join us and experience the future today!
Grow your brand and reach a larger audience. Advertise with us today and get noticed by thousands.
© 2025 Jugo Mobile. All Rights Reserved.