给win7 系统添加一个Loopback Adapter
在机子上写代码测试socket经常遇到问题,为了观察socket通信就安装了个wireshark,可是wireshark不能监视loopback ,因为win7默认没有安装loopback adapter。
那就得添加一个:
The key step I was missing was how to find the Hardware Wizard:
- Click the Start menu.
- Search for “cmd".
- Right-click on “cmd” and select “Run as Administrator”
- Enter “hdwwiz.exe”
From that point on it's the same approach as under Vista, i.e.:
- In the "Welcome to the Add Hardware Wizard", click Next.
- Select "Install the hardware that I manually select from a list (Advanced)" and click Next.
- Scroll down and select "Network adapters" and click Next.
- Select under Manufacturer "Microsoft" and then under Network Adapter "Microsoft Loopback Adapter" and click Next.
I've tested this and it's working for me (connecting the host to a VPC using the loopback adapter).