Minha recomendação é criar uma rede sem fio ad-hoc , em seguida, conecte sua conexão de Internet (Ethernet?) a um dos computadores e bridge a placa WiFi e a placa LAN . Em seguida, conecte seu segundo computador à rede sem fio ad-hoc.
Variação 1: sem WiFi ou Internet
Conecte diretamente os dois laptops com um cabo ethernet. Adaptado de outra pergunta :
Most modern computers come with an ethernet adapter that has the capability to connect to another ethernet adapter without a crossover cable. This is called Auto-MDIX. Simply connect the network interface from one computer to the network interface on the other computer.
Once they're plugged in, there might be some sort of automatically-configured network setup. That may work in some cases, but not others. For fun and extra credit, let's create a new subnet for you to use just between the two computers.
First, we need to pick a "subnet" to use. It's easiest to use one different from your internal network. Let's choose 192.168.253.0/24. When you connect the two systems together, you'll need to give each system an IP address, as well as configure host names. Make sure you're configuring the wired, ethernet interface and not the wireless interface. All of this configuration can be done through the GUI.
Here's your network configuration for the First Windows machine ("Use the following IP address"):
IP Address: 192.168.253.1
Subnet Mask: 255.255.255.0
Default Gateway: blank
While we're at it, don't configure DNS either, we'll do that later.
Here's your network configuration for the Second Windows machine
IP Address: 192.168.253.2
Subnet Mask: 255.255.255.0
Default Gateway: blank
If everything's hooked up, you should be able to address each computer by their respective IP addresses. This lets you ensure that you are connecting to the wired, and not wireless interface. If you want to add hostname resolution, let's just make a change to the hosts file:
On the First Windows computer:
edit
%SystemRoot%\system32\drivers\etc\hosts
, notepad will do.Add the following line:
192.168.253.2 xptwo-wired
You can replace xptwo-wired with whatever name you want to use for that system.
E salve.
No computador Windows Second :
edite
%SystemRoot%\system32\drivers\etc\hosts
, o bloco de notas serve.Adicione a seguinte linha:
192.168.253.1 xpone-wired
Para testar se isso funciona, execute ping em cada sistema usando o nome. Abra uma janela de terminal e execute o seguinte:
ping HOSTNAME
, em que HOSTNAME é o nome que você usou acima para a máquina oposta.
Variação 2: sem Ethernet ou Internet
Crie uma rede sem fio ad-hoc . Em seguida, conecte seu segundo computador à rede sem fio ad-hoc.
Algo diferente
Você pode dar uma olhada em esta outra pergunta que pode ser útil .