wireshark抓包不经过网口的数据在loopback里面可以捕获
两张网卡不一定是连通的 使用
arp -a 检查各个网口的连接ip多网卡绑定绑定INADDR_ANY 下面这种容易出错
hostent* thisHost = gethostbyname(""); char* ip = inet_ntoa(*(struct in_addr *)*thisHost->h_addr_list); ---来自腾讯云社区的---sofu456wireshark抓包不经过网口的数据在loopback里面可以捕获
两张网卡不一定是连通的 使用
arp -a 检查各个网口的连接ip多网卡绑定绑定INADDR_ANY 下面这种容易出错
hostent* thisHost = gethostbyname(""); char* ip = inet_ntoa(*(struct in_addr *)*thisHost->h_addr_list); ---来自腾讯云社区的---sofu456