正在寻找将笔记本电脑或台式机转换为无线路由器(wireless router)的方法?您可能会发现自己周围没有可供所有人连接的无线路由器。(wireless router)如果只有一台计算机连接到电缆或 DSL 调制解调器(cable or DSL modem),您可以将该计算机转换为路由器或无线路由器(router or wireless router),前提是该计算机有无线网卡。
在我们讨论设置过程(setup process)之前,了解要求很重要。主要要求是计算机必须在系统上至少安装两个网络接口(network interface)。您可以有两个网卡(network card)或一个网卡(network card)和一个无线网卡。如果您只有一个网络接口(network interface),则无法将您的计算机转换为路由器。
此外,在Windows计算机上,设置此路由器功能(router functionality)的过程称为Internet 连接共享(Internet Connection Sharing)。但是,为了让客户端以无线方式连接到主机(host computer),您还必须设置一个 ad-hoc无线网络(wireless network),该网络使用机器上安装的其他网络接口(network interface)连接到Internet 。
为了更好地理解,以下是我们需要完成的任务,以便将您的计算机变成无线路由器:
第 1 步:在(Step 1)本地连接界面(Local Area Connection interface)上启用Internet 连接(Internet Connection)共享
第 2 步(Step 2):创建一个新的 ad-hoc无线网络(wireless network)
步骤 3(Step 3) :在主机(host computer)上连接到新的无线网络(wireless network)
第 4 步(Step 4):将每个客户端连接到新的 ad-hoc无线网络(wireless network)
第 1 步 – 启用 ICS
要在Windows中启用ICS,请打开控制面板并单击(Control Panel and click)网络和共享中心(Network and Sharing Center)。确保您处于图标视图而不是类别视图中。单击(Click)左侧菜单中的更改适配器设置(Change adapter settings)。
现在右键单击本地连接(Local Area Connection)并选择Properties。请注意,在其他一些站点上,您应该右键单击Wireless Network Connection,但这意味着无线连接(wireless connection)将被共享,并且所有客户端都必须通过Ethernet连接。它要复杂得多,我什至无法让它工作,所以如果你想让你的生活更轻松,请坚持使用本地连接。(Area Connection)
单击共享(Sharing)选项卡,您实际上只能选中一个框:允许其他网络用户通过此计算机的 Internet 连接进行连接(Allow other network users to connect through this computer’s Internet connection)。
当您选中该框时,家庭网络连接(Home networking connection)下的下拉框将被启用。在这里,您要为您的无线网卡选择无线网络连接(wireless network connection)。
如果您列出了多个,则其中一个可能是虚拟适配器。确保(Make)不要选择那个。在本文开头单击“更改适配器设置(Change adapter settings)”后查看所有适配器时,您可以判断是否存在虚拟适配器。
单击“确定(Click OK)”并关闭“属性”窗口(Properties window)。现在LAN 连接(LAN connection)将被共享,我们可以继续进行第 2 步。
第 2 步(Step 2)–创建 Ad-Hoc 无线网络(Create Ad-Hoc Wireless Network)
要创建客户端机器将连接到的 ad-hoc无线网络(wireless network),我们需要返回网络和共享中心(Network and Sharing Center)并单击设置新连接或网络(Set up a new connection or network)。
现在向下滚动并单击Setup a wireless ad hoc (computer-to-computer) network。
单击(Click)下一步,然后为您的网络命名。此名称将是其他用户将在其计算机上看到的网络的SSID 。对于安全类型(Security type),选择无(None)并将安全密钥(Security key)框留空。
此外,请务必选中保存此网络(Save this network)框。单击下一步(Click Next),它将设置新的无线网络(wireless network)并告诉您它已准备好使用。单击关闭(Close)并继续执行步骤 3。
第 3 步 - 连接到 Ad Hoc 网络
现在新网络已经建立,我们需要确保我们在主机(host computer)上连接到它。为此,请单击任务栏通知区域(notification area)中的网络图标(network icon)。
如您所见,我的网络名为Shared,状态为Waiting for users。这意味着主机(host computer)已经连接,正在等待其他用户连接。如果系统没有自动连接,您可以单击网络名称并单击(network name and click) 连接。(Connect)其他用户连接后,状态应更改为Connected。
第 4 步 - 连接客户
最后一步是最简单的。只需转到客户端计算机并单击(client machine and click)网络图标,然后单击(network icon and click)ad-hoc网络名称(network name)。您应该自动连接,没有任何问题。
您必须在客户端计算机上进行的唯一更改是在Internet Explorer中。打开 IE(Open IE),然后单击齿轮图标并选择Internet 选项(Internet Options)。
单击连接(Connections)选项卡,然后单击底部的LAN 设置。( LAN Settings)
您想继续并取消选中此处选中的任何内容。自动检测设置(Automatically detect settings)很可能会被选中,因此请务必取消选中此框。
请注意,您应该只在客户端计算机上执行此过程,而不是主机(host computer)。此时,您应该可以从客户端计算机连接到(client machine)Internet。
故障排除
如果您已连接到 ad-hoc 网络,但无法在客户端计算机上访问(client machine)Internet,您可以尝试一些故障排除技巧。
重置温索克
在多台计算机上使用ICS后,有时我可以打开命令提示符(command prompt)并 ping 诸如Google.com之类的网站,但无法通过网络浏览器(web browser)访问它。如果您遇到类似问题,可以尝试重置Winsock。为此,请单击Start打开管理(Start)命令提示符(command prompt),输入cmd然后右键单击cmd并选择Run as Administrator。
现在输入netsh winsock reset并按Enter。该命令将完成,它会告诉您重新启动计算机。
如果您仍然在将客户端连接到Internet时遇到问题,请在此处发布您的情况,我会尽力提供帮助。这个过程有点复杂,但如果你能让它工作,这是一个连接多个客户端的好方法,无需额外的软件或硬件(software or hardware)。享受!
How to Make a Desktop or Laptop Act Like a Router
Lookіng for a way to convert your laрtop or desktop into a wireless rоuter? You may find yourself in a sіtuation where there isn’t a wirеless roυter around for everyone to connect to. If only оne comрuter is connected to a cable or DSL modem, you can convert that computer into а router or wireless router, іf the computer has a wireless card.
Before we talk about the setup process, it’s important to know the requirements. The main requirement is that the computer has to have at least two network interfaces installed on the system. You can either have two network cards or one network card and a wireless card. If you only have one network interface, you can’t convert your computer into a router.
Also, on Windows computers, the process of setting up this router functionality is called Internet Connection Sharing. However, in order to have clients connect to the host computer wirelessly, you also have to setup an ad-hoc wireless network that connects to the Internet using the other network interface installed on the machine.
For a better understanding, here are the tasks we need to complete in order to make your computer into a wireless router:
Step 1: Enable Internet Connection Sharing on the Local Area Connection interface
Step 2: Create a new ad-hoc wireless network
Step 3: Connect to the new wireless network on the host computer
Step 4: Connect each client to the new ad-hoc wireless network
Step 1 – Enable ICS
To enable ICS in Windows, open the Control Panel and click on Network and Sharing Center. Make sure you are in icon view and not category view. Click on Change adapter settings in the left-hand menu.
Now right-click on Local Area Connection and choose Properties. Note that on some other sites state that you should right-click on Wireless Network Connection, but this would mean the wireless connection would be shared and all clients would have to connect via Ethernet. It’s a lot more complicated and I’ve never even been able to get it to work, so stick with Local Area Connection if you want to make your life easier.
Click on the Sharing tab and there is really only one box you can check: Allow other network users to connect through this computer’s Internet connection.
When you check the box, the dropdown box under Home networking connection will become enabled. Here you want to select the wireless network connection for your wireless card.
If you have more than one listed, it could be that one of them is a virtual adapter. Make sure to not choose that one. You can tell if there is a virtual adapter when you look at all the adapters after clicking Change adapter settings at the beginning of this article.
Click OK and close out of the Properties window. Now the LAN connection will be shared and we can move on to step 2.
Step 2 – Create Ad-Hoc Wireless Network
To create the ad-hoc wireless network that the client’s machines will connect to, we need to go back to Network and Sharing Center and click on Set up a new connection or network.
Now scroll down and click on Setup a wireless ad hoc (computer-to-computer) network.
Click next and then give your network a name. This name will be the SSID for the network that other users will see on their computers. For Security type, choose None and leave the Security key box blank.
Also, make sure to check the Save this network box. Click Next and it will setup the new wireless network and tell you that it’s ready to use. Click Close and move on to Step 3.
Step 3 – Connect to Ad Hoc Network
Now that the new network has been set up, we need to make sure we are connected to it on the host computer. To do this, click on the network icon in the notification area of the taskbar.
As you can see, my network is called Shared and the status is Waiting for users. This means the host computer is already connected and is waiting for other users to connect. You can click on the network name and click Connect if the system didn’t connect automatically. Once another user connects, the status should change to Connected.
Step 4 – Connect Clients
The last step is the easiest. Just go to a client machine and click on the network icon and click on the ad-hoc network name. You should connect automatically without any issues.
The only change you have to make on client machines is in Internet Explorer. Open IE and then click on the gear icon and choose Internet Options.
Click on the Connections tab and then click on LAN Settings at the bottom.
You want to go ahead and uncheck anything that is checked here. Automatically detect settings will most likely be checked, so make sure to uncheck this box.
Note that you should only follow this procedure on the client computers, not the host computer. At this point, you should be able to connect to the Internet from the client machine.
Troubleshooting
If you are connected to the ad-hoc network, but are not able to access the Internet on the client machine, you can try a couple of troubleshooting tips.
Reset Winsock
After playing around with ICS on several computers, there were times when I could open a command prompt and ping a website like Google.com, but could not access it via the web browser. If you’re having a similar issue, you can try resetting Winsock. To do this, open an administrative command prompt by clicking on Start, typing in cmd and then right-clicking on cmd and choose Run as Administrator.
Now type in netsh winsock reset and press Enter. The command will complete and it’ll tell you to restart the computer.
If you’re still having issues connecting clients to the Internet, post your situation here and I will try to help. The process is a bit complicated, but if you can get it to work, it’s a great little way to connect multiple clients without additional software or hardware. Enjoy!