Post

Windows 设备间 LAN 通信

两台 WINDOWS 电脑通过LAN 通信。

查找网卡名字(如果不是Ethernet的话)

netsh interface show interface

结果:

1
2
3
4
5
6
7
8
9
10
11
12
Admin State    State          Type             Interface Name
-------------------------------------------------------------------------
Enabled        Connected      Dedicated        Wi-Fi
Enabled        Connected      Dedicated        Ethernet
```cmd

2. 以管理员身份设置静态IP

电脑 A

```cmd
netsh interface ip set address name="Ethernet" static 192.168.10.1 255.255.255.0

电脑 B

netsh interface ip set address name="Ethernet" static 192.168.10.2 255.255.255.0

测试是否连通 电脑 A

ping 192.168.10.2

电脑 B

ping 192.168.10.1
This post is licensed under CC BY 4.0 by the author.