如果您尝试在本地网络上的PC 之间共享文件(share files between PCs),但无法建立连接,则可能表明您的网络配置存在问题。您可能已连接到您的网络,但访问您网络上的其他 PC 和设备可能会被阻止。
这通常是由于您的设备设置不正确或网络连接中断。值得庆幸的是,如果您在网络上看不到其他计算机,通常很容易修复。Windows、macOS 和Linux PC(Linux PCs)都会不时遇到此问题,但您可以使用以下一些快速修复程序来解决此问题。
在 Windows 10 上启用网络发现(Enabling Network Discovery on Windows 10)
对于大多数Windows用户来说,网络上隐藏 PC 的最大原因是(Windows)Windows上的网络发现设置。禁用此设置后,您的 PC 对本地网络隐藏,而其他 PC 对您隐藏。
- 您可以通过打开Windows 文件资源管理器(Windows File Explorer)来检查是否启用了网络发现。在左侧的导航窗格中,按(Navigation Pane)网络(Network)选项卡。
- 如果网络发现被禁用,Windows 会立即提醒您。您可以前往Settings > Network & Internet > Sharing Options > Turn on network discovery ”以重新启用此功能,但Windows会在(Windows)文件资源管理器(File Explorer)窗口顶部提供一个快捷方式来启用它。按出现在顶部的黄色栏以调出快速选项菜单。
- 在出现的选项菜单中,按打开网络发现和文件共享(Turn on network discovery and file sharing)。
- 如果您的网络当前设置为公共网络,Windows将询问您是否要将网络切换为专用网络,或者允许在公共网络上进行网络发现。这通常是不可取的——如果您在自己的网络上,请选择否,将我连接到专用网络的网络(No, make the network that I am connected to a private network)选项改为。
启用网络发现后,您应该能够在“网络(Networks)”选项卡中看到其他计算机,但前提是这些设备也启用了网络发现。您还可以通过在文件资源管理器(File Explorer)窗口顶部的地址栏中键入设备的 IP 地址或主机名来直接访问设备。
配置防火墙以允许文件和打印机共享(Configuring Your Firewall to Allow File and Printer Sharing)
Windows 防火墙(Windows Firewall)旨在阻止进出您的 PC 的不必要流量。如果启用了网络发现,但您仍然看不到网络上的其他计算机,您可能需要在防火墙规则中将文件和打印机共享列入白名单。(File and Printer Sharing )
- 为此,请右键单击Windows 开始(Windows Start)菜单并按设置(Settings)。在Windows 设置(Windows Settings)菜单中,按Update & Security > Windows Security > Firewall & network protection。
- 在防火墙和网络保护(Firewall & network protection)菜单中,单击允许应用程序通过防火墙(Allow an app through firewall)选项。
- 在允许应用程序通过 Windows Defender 防火墙进行通信(Allow apps to communicate through Windows Defender Firewall)窗口中,按更改设置(Change Settings)以允许访问。滚动(Scroll)列表,直到找到Fill and Printer Sharing和File and Printer Sharing over SMBDirect选项,然后单击Private列下每个选项的复选框以允许通过防火墙。如果您想允许公共网络访问,您也可以启用公共(Public)
列下的复选框,但不建议这样做。完成后按确定(OK)保存。
您需要对您可能正在使用的任何其他第三方防火墙重复此过程,包括网络防火墙(如果您正在使用)。
在 Windows 10 上启用计算机浏览器服务(Enabling the Computer Browser Service on Windows 10)
这不太可能是您的问题的原因,但如果您用完了可供尝试的软件解决方案,您应该查看计算机浏览器(Computer Browser)系统服务是否已启用并在您的 PC 上运行。Windows使用它在文件资源管理器(File Explorer)中列出网络上的本地 PC 。
- 要开始,请按键盘上的Windows key + R在“运行”(Run)对话框中,键入services.msc,然后按“确定(OK)”启动。
- 在服务(Services)管理控制台窗口中,找到计算机浏览器服务并在(Computer Browser )状态(Status)列下查看它的当前状态。如果当前状态为Stopped或Disabled,您需要重新启用它——右键单击并按Properties选项。
- 单击“开始(Start)”按钮以在“计算机浏览器属性(Computer Browser Properties)”窗口中启用它,然后在“启动类型(Startup type)”下拉菜单下选择“自动”以确保它将来会自动启动。(Automatic)按确定(OK)保存。
检查您的本地网络配置(Checking Your Local Network Configuration)
如果您仍然看不到网络上的其他计算机,则需要仔细检查您的 PC 是否正确连接到本地网络。如果您在有线网络上,请对路由器电缆进行物理检查,如果您在无线网络上,请确保您与无线接入点的连接处于活动状态且稳定。
检查这一点的一种方法是使用PowerShell或命令行中的ping命令。这将允许您查看您的 PC 是否正确连接到您的网络并可以检测其他本地网络设备,但要这样做,您需要知道另一台本地 PC 的本地 IP 或主机名。
- 要使用ping,请右键单击Windows 开始(Windows Start)菜单并按Windows PowerShell或Windows PowerShell (Admin)。在PowerShell终端中,键入ping x.xxx或ping hostname,将xxxx和hostname替换为本地 IP 地址或 PC 主机名。
如果ping命令响应回复,则网络连接问题不应阻止您查看网络上的其他计算机。这可能表明其他地方存在软件或网络配置问题。
- 您可以测试您的网络配置是否存在Windows设置中的问题 - 右键单击“开始(Start)”菜单并按“设置”(Settings)来访问它。从那里,按 Update & Security > Troubleshoot > Network Adapter ,然后单击运行疑难解答(Run the Troubleshooter)。
如果Windows检测到您的网络配置有任何问题,它将自动尝试修复它们。例如,这可能会检测到您的网络设备正在使用静态 IP 地址——如果设置不正确,您将无法与网络上的其他设备进行交互。
- 要更改此设置,请右键单击“开始”菜单(Start menu)按钮并按“设置”(Settings)。在Windows 设置(Windows Settings)菜单中,按Network & Internet > Status > Change adapter options。
- 在“网络连接(Network Connections)”菜单中,右键单击您的网络设备,然后按“属性(Properties)” 。在“属性(Properties )”窗口中,(, )单击Internet Protocol Version 4 (TCP/IPv4),然后按“属性(Properties)” 。
- 在IPv4 属性(IPv4 Properties )窗口中,确保选择并启用自动获取 IP 地址(Obtain an IP address automatically)和自动获取 DNS 服务器地址,然后按(Obtain DNS server address automatically)确定(OK)>关闭(Close )保存。
您可能还会发现问题不在于您的 PC 配置,而在于您的网络。例如,某些路由器上称为无线隔离(wireless isolation)(有时称为客户端隔离(client isolation)或AP 隔离(AP isolation))的功能会在本地网络上隐藏无线设备,从而阻止您从 PC 连接到它们。
您可能需要查阅无线路由器的用户手册以确定如何禁用此功能,但您应该能够在本地路由器的无线设置下找到它。
如何使用 macOS 查看网络上的其他计算机 (How To See Other Computers On Network With macOS )
Apple设备通常非常擅长检测其他Apple设备,这要归功于Apple Bonjour网络服务,它通常也可以检测其他Windows和Linux PC(Linux PCs)。如果您想在 macOS 上查看其他计算机,可以通过单击核心 macOS Finder应用程序中的(Finder )网络(Network)选项卡来执行此操作。
- 如果此时您在网络上看不到任何其他计算机,您可能需要手动连接到它。为此,请打开Finder应用程序并按Go > Connect to Server。
- 在“连接到服务器”窗口中,在“(Connect to Server)服务器地址(Server Address)”框中键入要连接的 PC 的 IP 地址或主机名。按连接(Connect)以连接到服务器,按照屏幕上的任何说明提供正确的凭据以建立连接。
- 如果在直接连接后看不到网络 PC,则需要确保在Finder中启用了查看它的选项。为此,请按菜单栏中的Finder > Preferences。
- 在Finder Preferences窗口中,确保在Sidebar选项卡中启用了(Sidebar)Connected servers复选框。
选中后,您应该能够在Finder中看到(Finder)已连接的服务器(Connected servers)选项卡,其中将显示您连接的 PC 供您访问。如果您无法查看或连接到另一台 PC 或Mac,或者在Finder的“(Finder)网络(Networks)”选项卡中看不到任何设备,则可能是由 macOS 网络连接问题引起的。
您可以通过单击Apple menu > System Preferences > Network来仔细检查。在网络(Network)设置菜单中,检查左侧菜单中的连接类型——连接旁边的图标应该是绿色的。
如果不是,您需要通过一些明显的检查(物理接线、WiFi连接等)来恢复您的连接,然后重复上述步骤。
如何在 Linux 上查看其他计算机(How To See Other Computers On Linux)
Linux软件包因发行版而异,因此如果您无法从Linux PC 上看到网络上的其他计算机,则没有一种万能的方法——(Linux PCs—at)至少具有图形用户界面。
要检查您的 PC 是否可以看到其他设备,您可以使用arp-scan网络扫描工具来扫描您的网络以查找设备。这将列出您网络上的所有可用设备。
- 您首先需要安装arp-scan软件包来运行此扫描。在基于Ubuntu和 Debian 的操作系统上,您可以通过打开终端(terminal)并键入sudo apt install arp-scan来执行此操作。
- 安装arp -(arp-scan) scan后,在终端(terminal)中键入arp-scan -l并按enter。如果它不起作用,请尝试sudo arp-scan -l代替。
将列出您网络上的可用设备列表,并显示 IP 地址、MAC地址和设备类型。如果此命令有效,则可以从您的Linux PC 进行网络发现,并且您应该能够使用Linux发行版的文件管理工具或使用终端查看并连接到其他 PC。
如果失败,则可能表明您的整体网络配置或防火墙存在问题。您可以采取通常的步骤(物理检查和连接测试)来尝试解决这些问题。
如果您使用的是Ubuntu,您可以通过打开文件管理器(File Manager )应用程序并单击其他位置( Other Locations)选项卡来快速查看并连接到检测到的网络设备。
正确设置网络(Setting Up Your Network Correctly)
正如我们上面的修复程序所示,如果您看不到网络上的其他计算机,有很多方法可以解决网络连接问题。(troubleshoot a network connection)大多数问题都可以通过改进的网络设置来解决,包括检查您的设备是否处于WiFi的良好位置,或者,如果您使用的是以太网,则检查您的接线是否正确连接。
如果您的WiFi连接导致问题,从长远来看,切换到全有线网络可以解决问题。在某些情况下,以太网比 WiFi 更好(Ethernet is better than WiFi)——但这并不是一个奇迹般的解决方案。
在下面的评论中让我们知道您自己的网络问题提示和解决方法。
Can’t See Other Computers on a Network? Fixes For Windows, Mac, and Linux
If you’re tryіng to share files between PCs on a local network, but you just can’t make a connection, it could point to a problem with your network configuration. You may be connected to your network, but accessing other PCs and devices on your network might be blocked.
This is often due to incorrect settings on your device or a broken network connection. Thankfully, it’s usually an easy process to fix if you can’t see other computers on a network. Windows, macOS, and Linux PCs all suffer from this problem from time to time, but here are some quick fixes you can use to resolve the problem.
Enabling Network Discovery on Windows 10
For most Windows users, the biggest cause of hidden PCs on a network is due to the network discovery settings on Windows. When this setting is disabled, your PC is hidden from the local network, and other PCs are hidden from you.
- You can check whether network discovery is enabled by opening Windows File Explorer. In the Navigation Pane on the left, press the Network tab.
- Windows will alert you immediately if network discovery is disabled. You can head to Settings > Network & Internet > Sharing Options > Turn on network discovery to re-enable this, but Windows will helpfully provide a shortcut to enable it at the top of the File Explorer window. Press the yellow bar that appears at the top to bring up a quick options menu.
- In the options menu that appears, press Turn on network discovery and file sharing.
- If your network is currently set as a public network, Windows will ask you if you want to switch your network to private, or otherwise allow network discovery on public networks. This isn’t usually advisable—if you’re on your own network, select the No, make the network that I am connected to a private network option instead.
Once network discovery has been enabled, you should be able to see other computers in the Networks tab—but only if those devices have network discovery enabled, too. You can also access devices directly by typing their IP address or hostname in the address bar at the top of the File Explorer window.
Configuring Your Firewall to Allow File and Printer Sharing
The Windows Firewall is designed to block unnecessary traffic to and from your PC. If network discovery is enabled, but you still can’t see other computers on a network, you may need to whitelist File and Printer Sharing in your firewall rules.
- To do this, right-click the Windows Start menu and press Settings. In the Windows Settings menu, press Update & Security > Windows Security > Firewall & network protection.
- In the Firewall & network protection menu, click the Allow an app through firewall option.
- In the Allow apps to communicate through Windows Defender Firewall window, press Change Settings to allow access. Scroll through the list until you find the Fill and Printer Sharing and File and Printer Sharing over SMBDirect options and click the checkbox for each option under the Private column to allow this through the firewall.
You can also enable the checkboxes under the Public column if you want to allow public networks access, but this isn’t recommended. Press OK to save once you’re done.
You’ll need to repeat this process for any other third-party firewalls you may be using, including a network firewall (if you’re using one).
Enabling the Computer Browser Service on Windows 10
This is unlikely to be the cause of your issues, but if you’re running out of software solutions to try, you should see if the Computer Browser system service is enabled and running on your PC. This is used by Windows to list local PCs on your network in File Explorer.
- To start, press the Windows key + R on your keyboard. In the Run dialog box, type services.msc, then press OK to launch.
- In the Services management console window, locate the Computer Browser service and look at the current status for it under the Status column. If the status is currently Stopped or Disabled, you’ll need to re-enable it—right-click and press the Properties option.
- Click the Start button to enable it in the Computer Browser Properties window, then select Automatic under the Startup type drop-down menu to ensure it starts automatically in future. Press OK to save.
Checking Your Local Network Configuration
If you still can’t see other computers on a network, you’ll need to double-check if your PC is correctly connected to your local network. Run a physical check on your router cables if you’re on a wired network, and if you’re on a wireless network, make sure your connection to the wireless access point is active and stable.
One way to check this is to use the ping command from a PowerShell or command line. This will allow you to see whether your PC is connected to your network correctly and can detect other local network devices, but to do so, you’ll need to know the local IP or hostname for another local PC.
- To use ping, right-click on the Windows Start menu and press Windows PowerShell or Windows PowerShell (Admin). From the PowerShell terminal, type ping x.x.x.x or ping hostname, replacing x.x.x.x and hostname with either a local IP address or PC hostname.
If the ping command responds with a reply, then a network connection issue shouldn’t be preventing you from seeing other computers on your network. This would likely suggest a software or network configuration issue elsewhere.
- You can test your network configuration for problems in your Windows settings—right-click the Start menu and press Settings to access this. From there, press Update & Security > Troubleshoot > Network Adapter and click Run the Troubleshooter.
If Windows detects any problems with your network configuration, it will automatically attempt to fix them. This might detect, for instance, that a static IP address is being used for your network device—if this is set up incorrectly, you won’t be able to interact with other devices on your network.
- To change this, right-click the Start menu button and press Settings. From the Windows Settings menu, press Network & Internet > Status > Change adapter options.
- In the Network Connections menu, right-click on your network device and press Properties. In the Properties window, click Internet Protocol Version 4 (TCP/IPv4) and press Properties.
- In the IPv4 Properties window, make sure that Obtain an IP address automatically and Obtain DNS server address automatically are selected and enabled, then press OK > Close to save.
You might also find that the problem isn’t with your PC configuration, but with your network. For instance, a feature called wireless isolation (sometimes called client isolation or AP isolation) on some routers will hide wireless devices from each other on a local network, preventing you from connecting to them from your PC.
You may need to consult the user manual for your wireless router to determine how to disable this feature, but you should be able to find it under your local router’s wireless settings.
How To See Other Computers On Network With macOS
Apple devices are usually very good at detecting other Apple devices, thanks to the Apple Bonjour networking service, and it can usually detect other Windows and Linux PCs, too. If you want to see other computers on macOS, you can do this by clicking the Network tab in the core macOS Finder app.
- If you can’t see any other computers on your network at this point, you may need to connect to it manually. To do this, open the Finder app and press Go > Connect to Server.
- In the Connect to Server window, type the IP address or hostname for the PC you want to connect to in the Server Address box. Press Connect to connect to the server, following any on-screen instructions to provide the correct credentials to make the connection.
- If you can’t see the network PC after making a direct connection, you’ll need to make sure the option to view it is enabled in Finder. To do this, press Finder > Preferences from the menu bar.
- In the Finder Preferences window, make sure that the Connected servers checkbox is enabled in the Sidebar tab.
Once checked, you should be able to see a Connected servers tab in Finder, where your connected PC will be shown for you to access. If you can’t view or connect to another PC or Mac, or if no devices are visible in the Networks tab in Finder, it may be caused by a problem with your macOS network connection.
You can double-check this by clicking the Apple menu > System Preferences > Network. In the Network settings menu, check your connection type in the left-hand menu—the icon next to your connection should be green.
If it isn’t, you’ll need to run through some obvious checks (physical wiring, WiFi connectivity, etc) to restore your connection, then repeat the steps above.
How To See Other Computers On Linux
Linux software packages vary from distribution to distribution, so there’s no one-size-fits-all approach if you can’t see other computers on a network from a Linux PCs—at least with a graphical user interface.
To check if your PC can see other devices, you can use the arp-scan network scanning tool to scan your network for devices instead. This will list all available devices on your network.
- You’ll first need to install the arp-scan package to run this scan. On Ubuntu and Debian-based operating systems, you can do this by opening a terminal and typing sudo apt install arp-scan.
- Once arp-scan is installed, type arp-scan -l in the terminal and press enter. If it doesn’t work, try sudo arp-scan -l instead.
A list of available devices on your network will be listed, with IP addresses, MAC addresses, and device types shown. If this command works, then network discovery is possible from your Linux PC, and you should be able to view and connect to other PCs using your Linux distribution’s file management tool or by using the terminal.
If it fails, it will likely indicate a problem with your overall network configuration or firewall. You can take the usual steps (physical checks and connection tests) to try to resolve these.
If you’re using Ubuntu, you can quickly view and connect to detected network devices by opening the File Manager app and clicking the Other Locations tab.
Setting Up Your Network Correctly
As our fixes above show, there are quite a few ways to troubleshoot a network connection if you can’t see other computers on a network. Most problems can be resolved with an improved network setup, including checking your device is in a good position for WiFi or, if you’re using ethernet, that your wiring is correctly connected.
If your WiFi connectivity is causing problems, switching to an all-wired network could resolve the problem over the long term. Ethernet is better than WiFi for certain situations—but it isn’t a miracle fix.
Let us know your own tips and fixes for network problems in the comments below.