To find the name of the Windows 10 computer you are using, right-click Start, select Settings > System > About, and read Device name under Device specifications. To find the name of a different server, such as the one behind a mapped network drive, open Command Prompt and run net use. The server name is the part right after the two backslashes.
Applies to: Windows 10 (the Settings steps are the same in Windows 11).
Which server name do you need?
“Server name” can mean several things on a Windows 10 PC. Pick the row that matches what you were asked for, then jump to that section.
| What you need | Where to look |
|---|---|
| The name of this PC (also called the computer name, device name, or host name) | Settings > System > About, or the hostname command |
| The server behind a mapped drive or shared folder | The net use command |
| The name that belongs to an IP address | ping /a, nslookup, or nbtstat /A |
| The full name, including the domain | The Domain or workgroup link on the About page |
| A SQL Server instance name | The SELECT @@SERVERNAME query |
| A mail, VPN, or app server | Your provider’s setup instructions or your network administrator |
Three terms come up often. A host name is the short name of one computer, such as FILESERVER. A fully qualified domain name (FQDN) is the host name plus the domain it belongs to, such as fileserver.corp.example.com. A network path is written as \\server\share, where the first part is the server name and the second part is the shared folder.
Find this computer’s name in Settings
Use this method when the PC in front of you is the “server,” for example when another person needs its name to connect to a folder or printer you share.
- Right-click Start and choose Settings. The Settings window opens.
- Select System. A list of system categories appears.
- Select About. The page shows details about your device and your copy of Windows.
- Find Device name under Device specifications. That is the name other devices use for this PC.

A quicker way to the same page is to press the Windows key, type System, and select About. Everything else on that page is explained in Find information about your Windows device.
If you only need the name, you are done. To pick a different one, you can change your PC name in Windows 10.
Find the name with Command Prompt
Command Prompt gives the same answer in one line, which is handy when Settings is restricted or when you are helping someone over the phone.
- Type cmd in the search box and open Command Prompt. A black window with a blinking cursor opens.
- Type hostname and press Enter.
- Read the single line that appears. It is the host name portion of the full computer name.
You can also type echo %COMPUTERNAME% and press Enter. It usually prints the same name in capital letters. Type hostname with nothing after it, because any extra option other than /? produces an error message. The hostname command reference has the full details.
See the name with your network details
Type ipconfig /all and press Enter to display the full TCP/IP configuration for all network adapters. The host name is listed near the top of the output, above the details for each adapter, so this command is useful when someone asks for the computer name and the IP address together.
Use System Information
Type msinfo32 in the search box and open System Information. The tool shows a detailed view of your hardware and software, and its summary page includes the name of the computer along with the Windows version.
If you use a network drive at work or at home, such as a drive letter that is not part of your own PC, the server name is stored in that connection.
- Open Command Prompt as described above.
- Type net use and press Enter. Used with nothing after it, the command lists your network connections.
- Look at the network path next to each drive letter. In a path such as \\fileserver\documents, the server name is fileserver and the shared folder is documents.
If the list is empty, this PC has no saved network connections. In that case, check the instructions or shortcut you were given for the shared folder, or ask the person who manages the network.
Find a server’s name from its IP address
Sometimes you know only a number, such as 192.168.1.20, and need the name that goes with it. Open Command Prompt and try these commands in order. Replace the example address with the real one.
- ping /a 192.168.1.20 asks Windows to do a reverse name lookup on the address. If the lookup succeeds, ping displays the matching host name.
- nslookup 192.168.1.20 asks your default DNS server for the name registered for that address.
- nbtstat /A 192.168.1.20 displays the NetBIOS name table of the remote computer, which is useful on small home and office networks that have no DNS server of their own. Use a capital A when you type an IP address.
All the options for each command are in the ping command reference and the nslookup command reference.
Confirm the name works
A name is only useful if your PC can reach the server with it. Two quick checks will tell you.
- In Command Prompt, type ping followed by a space and the server name, then press Enter. Replies mean the name resolves and the server answers.
- To test a shared folder, open File Explorer (Windows logo key + E), select This PC, and on the Computer tab select Map network drive. Choose a letter in the Drive list, type the path in the Folder box in the form \\server\share, and select Finish.
Screens for each step are on Map a network drive in Windows. Nothing on the server changes when you look up or test its name, so there is nothing to undo. To disconnect a test drive later, add /delete to the same connection, for example net use Z: \\server\share /delete.
Troubleshooting
- You can’t open Settings or the About page. Work and school PCs are sometimes restricted. The hostname command still shows the name.
- The hostname command shows an error. Make sure you typed only the word hostname. The command accepts no options other than /?, and it requires the TCP/IP protocol on a network adapter.
- ping /a shows only the IP address. No name is registered for that address where Windows looked. Try nslookup or nbtstat /A, or ask the network administrator.
- nslookup returns “Nonexistent domain.” The computer or domain name does not exist on that DNS server. “Timed out” means the DNS server did not respond in time, and “No response from server” means no DNS name server is running at that address.
- Pinging the IP address works but pinging the name fails. This points to a name resolution problem, so the name may be misspelled, incomplete, or missing from DNS. Try the full name including the domain.
- The name is correct but the drive won’t connect. The computer you’re trying to reach might be turned off, or you might not have the correct permissions.
- You were given a long name and see a short one. Windows computer names on a local network are limited to 15 characters, while a DNS host name can be up to 63 characters in each part between the dots. Use the name exactly as your administrator wrote it.
- Capital letters don’t match. Computer names are not case-sensitive in practice, so FILESERVER and fileserver point to the same machine.
Frequently asked questions
Is the server name the same as the computer name?
If the Windows 10 PC itself is sharing files or a printer, yes. Its device name is the server name that other people type. If you are connecting to a separate machine, the server name belongs to that machine, and your own device name is not the answer.
What is the difference between a server name and an IP address?
The name is a readable label, and the IP address is the number the network uses to deliver data. DNS and other name services translate one into the other. Names are easier to remember and usually stay the same when the address changes.
How do I find the full name with the domain?
Go to Settings > System > About and select the Domain or workgroup link under Related links. The window that opens shows the computer’s full name and whether it belongs to a domain or a workgroup. On a home PC the full name and the device name are usually the same.
How do I find the server name for SQL Server?
Run the query SELECT @@SERVERNAME in your SQL tool. It returns the name of the local server running SQL Server (details in the @@SERVERNAME reference). A default instance returns just the server name, and a named instance returns the server name, a backslash, and the instance name.
Where do I find my email or VPN server name?
Those names are not stored with the Windows device name. They come from your email provider, your employer, or the VPN service, so check the setup instructions they gave you or the account settings in the app.
Can I change this PC’s name?
Yes. On the About page, select Rename this PC, enter a name, select Next, and then choose Restart now or Restart later. The new name takes effect after the restart. On a work or school PC, ask your IT department first, because other systems may rely on the current name.
Do these steps work in Windows 11?
The Settings path and the commands are the same. The one difference in this guide is mapping a drive: in Windows 11 File Explorer, select This PC, then More > Map network drive.
Is Windows 10 still supported?
Microsoft ended support for Windows 10 on October 14, 2025. The methods here still work on existing Windows 10 PCs, but Windows 10 Home and Pro no longer receive the regular monthly security updates.
Once you have the name, you can use it to connect: sharing folders in Windows 10 shows how to open a shared folder with it, and setting up Remote Desktop lets you control the PC from another device. Tools like sqlcmd and SQL Server Management Studio use this name to reach a database, so see how to install SQL Server on Windows 10 if that is your next step.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.