当前位置: 首页 > 知识库问答 >
问题:

wifi - 如何用命令行产生热点给手机用?

厍胤运
2023-10-01

无线网卡可以被正确识别

图片.png

我用"猎豹免费wifi",可以开启一个热点,让手机用。
现在,我准备使用命令行来做。
网络的整体状况

C:\Windows\system32>ipconfig  /allWindows IP Configuration   Host Name . . . . . . . . . . . . : DESKTOP-IM4RDOM   Primary Dns Suffix  . . . . . . . :   Node Type . . . . . . . . . . . . : Hybrid   IP Routing Enabled. . . . . . . . : No   WINS Proxy Enabled. . . . . . . . : NoWireless LAN adapter Wi-Fi 2:   Media State . . . . . . . . . . . : Media disconnected   Connection-specific DNS Suffix  . :   Description . . . . . . . . . . . : Atheros AR9271 Wireless Network Adapter   Physical Address. . . . . . . . . : 00-1A-8C-30-08-B1   DHCP Enabled. . . . . . . . . . . : Yes   Autoconfiguration Enabled . . . . : YesEthernet adapter Ethernet:   Connection-specific DNS Suffix  . :   Description . . . . . . . . . . . : Realtek PCIe FE Family Controller   Physical Address. . . . . . . . . : 0A-E0-AF-F4-47-59   DHCP Enabled. . . . . . . . . . . : Yes   Autoconfiguration Enabled . . . . : Yes   Link-local IPv6 Address . . . . . : fe80::d5cd:a249:e8c1:fd03%10(Preferred)   IPv4 Address. . . . . . . . . . . : 192.168.31.38(Preferred)   Subnet Mask . . . . . . . . . . . : 255.255.255.0   Lease Obtained. . . . . . . . . . : Saturday, 30 September 2023 2:05:03 pm   Lease Expires . . . . . . . . . . : Sunday, 1 October 2023 2:05:03 am   Default Gateway . . . . . . . . . : 192.168.31.1   DHCP Server . . . . . . . . . . . : 192.168.31.1   DHCPv6 IAID . . . . . . . . . . . : 101376175   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-A4-94-90-0A-E0-AF-F4-47-59   DNS Servers . . . . . . . . . . . : 192.168.31.1   NetBIOS over Tcpip. . . . . . . . : EnabledWireless LAN adapter Local Area Connection* 10:   Media State . . . . . . . . . . . : Media disconnected   Connection-specific DNS Suffix  . :   Description . . . . . . . . . . . : Microsoft Hosted Network Virtual Adapter #2   Physical Address. . . . . . . . . : 06-1A-8C-30-08-B1   DHCP Enabled. . . . . . . . . . . : Yes   Autoconfiguration Enabled . . . . : Yes

显示驱动

C:\Windows\system32>netsh wlan show driversInterface name: Wi-Fi 2    Driver                    : Atheros AR9271 Wireless Network Adapter    Vendor                    : Atheros Communications Inc.    Provider                  : Atheros Communications Inc.    Date                      : 6/10/2011    Version                   : 2.0.0.64    INF file                  : oem12.inf    Type                      : Native Wi-Fi Driver    Radio types supported     : 802.11b 802.11g 802.11n    FIPS 140-2 mode supported : Yes    802.11w Management Frame Protection supported : No    Hosted network supported  : Yes    Authentication and cipher supported in infrastructure mode:                                Open            None                                Open            WEP-40bit                                Open            WEP-104bit                                Open            WEP                                WPA-Enterprise  TKIP                                WPA-Personal    TKIP                                WPA2-Enterprise TKIP                                WPA2-Personal   TKIP                                Vendor defined  TKIP                                WPA2-Enterprise Vendor defined                                Vendor defined  Vendor defined                                WPA-Enterprise  CCMP                                WPA-Personal    CCMP                                WPA2-Enterprise CCMP                                Vendor defined  CCMP                                WPA2-Enterprise Vendor defined                                Vendor defined  Vendor defined                                WPA2-Personal   CCMP                                Vendor defined  Vendor defined    Authentication and cipher supported in ad-hoc mode:                                Open            None                                Open            WEP-40bit                                Open            WEP-104bit                                Open            WEP                                WPA2-Personal   CCMP                                Vendor defined  Vendor defined    Wireless Display Supported: No (Graphics Driver: Yes, Wi-Fi Driver: No)

设置无线网络
netsh wlan set hostednetwork mode=allow ssid=myhome key=12345678
启动网络

C:\Windows\system32>netsh wlan start hostednetworkThe hosted network started.

查看整体网络

C:\Windows\system32>ipconfig /allWindows IP Configuration   Host Name . . . . . . . . . . . . : DESKTOP-IM4RDOM   Primary Dns Suffix  . . . . . . . :   Node Type . . . . . . . . . . . . : Hybrid   IP Routing Enabled. . . . . . . . : No   WINS Proxy Enabled. . . . . . . . : NoWireless LAN adapter Wi-Fi 2:   Media State . . . . . . . . . . . : Media disconnected   Connection-specific DNS Suffix  . :   Description . . . . . . . . . . . : Atheros AR9271 Wireless Network Adapter   Physical Address. . . . . . . . . : 00-1A-8C-30-08-B1   DHCP Enabled. . . . . . . . . . . : Yes   Autoconfiguration Enabled . . . . : YesEthernet adapter Ethernet:   Connection-specific DNS Suffix  . :   Description . . . . . . . . . . . : Realtek PCIe FE Family Controller   Physical Address. . . . . . . . . : 0A-E0-AF-F4-47-59   DHCP Enabled. . . . . . . . . . . : Yes   Autoconfiguration Enabled . . . . : Yes   Link-local IPv6 Address . . . . . : fe80::d5cd:a249:e8c1:fd03%10(Preferred)   IPv4 Address. . . . . . . . . . . : 192.168.31.38(Preferred)   Subnet Mask . . . . . . . . . . . : 255.255.255.0   Lease Obtained. . . . . . . . . . : Saturday, 30 September 2023 2:43:05 pm   Lease Expires . . . . . . . . . . : Sunday, 1 October 2023 2:43:04 am   Default Gateway . . . . . . . . . : 192.168.31.1   DHCP Server . . . . . . . . . . . : 192.168.31.1   DHCPv6 IAID . . . . . . . . . . . : 101376175   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-A4-94-90-0A-E0-AF-F4-47-59   DNS Servers . . . . . . . . . . . : 192.168.31.1   NetBIOS over Tcpip. . . . . . . . : EnabledWireless LAN adapter Local Area Connection* 10:   Connection-specific DNS Suffix  . :   Description . . . . . . . . . . . : Microsoft Hosted Network Virtual Adapter #2   Physical Address. . . . . . . . . : 06-1A-8C-30-08-B1   DHCP Enabled. . . . . . . . . . . : Yes   Autoconfiguration Enabled . . . . : Yes   Link-local IPv6 Address . . . . . : fe80::dcb4:f3ac:5cf2:378b%3(Preferred)   IPv4 Address. . . . . . . . . . . : 192.168.137.1(Preferred)   Subnet Mask . . . . . . . . . . . : 255.255.255.0   Default Gateway . . . . . . . . . :   DHCPv6 IAID . . . . . . . . . . . : 621157004   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2C-A4-94-90-0A-E0-AF-F4-47-59   DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1                                       fec0:0:0:ffff::2%1                                       fec0:0:0:ffff::3%1   NetBIOS over Tcpip. . . . . . . . : Enabled

手机上进行连接,可以连接上,但是没有internet

共有1个答案

经慈
2023-10-01

根据你提供的信息,你已经在命令行中设置了无线网络,但手机无法连接。这可能是由于一些常见的问题导致的,以下是一些可能的解决方案:

  1. 检查网络名称(SSID)和密码:确认你在设置无线网络时使用的名称和密码是正确的,并且与手机中使用的密码和名称匹配。
  2. 检查无线网卡驱动程序:确认你的无线网卡驱动程序已经正确安装。你可以尝试更新无线网卡驱动程序,或从网卡制造商的官方网站下载并安装最新版本的驱动程序。
  3. 检查防火墙设置:确认你的防火墙没有阻止无线网络的使用。在某些情况下,防火墙可能会阻止网络共享功能。你可以尝试暂时禁用防火墙,看看是否可以解决问题。
  4. 检查网络设置:确认你的计算机和手机处于相同的网络中。如果你的计算机和手机连接到不同的Wi-Fi网络,那么手机将无法连接到计算机创建的热点。
  5. 检查DHCP服务器设置:确认你的计算机可以充当DHCP服务器。在命令行中,你可以使用以下命令来检查DHCP服务器是否已经启动:
ipconfig /showclassinfo

在结果中,寻找与DHCP服务器相关的信息,确保它已经启动并且配置正确。

如果你尝试了以上解决方案仍然无法解决问题,那么可能需要进一步检查你的网络设置和硬件设备是否存在其他问题。你可以尝试查看系统日志或联系技术支持以获取更多帮助。

 类似资料:
  • 问题内容: 我需要在Android 2.2(Froyo)中进行什么API调用才能创建Wifi热点(如“网络共享和便携式热点”设置项所示)。 问题答案: 你可以打电话 使用反射:) 在使用反射获取声明的方法之后,查找该方法名称并通过对象调用它 这些API被标记为@hide,因此当前您不能直接使用它们,但是它们出现在WifiManager的AIDL上,因此可以访问! 一个示例可以是: 它可以正常工作,

  • 问题内容: 当我尝试去做 我得到一个空的输出。 预期输出为: 问题答案: 如果没有输出,通常是因为命令无法启动。 阅读()以检查是否有任何错误。

  • 我有一个作为接入点(也称为wifi热点)运行的android设备,它运行的代码是: 我将有一些其他客户端设备连接到此设备的wifi热点,并尝试连接到插座,但它将无法。 接入点的 IP 地址类似于 192.168.43.1 ...所以我将尝试从客户端设备连接到192.168.43.1:8080,它将不起作用。 但是,如果两个设备都连接到另一个wifi网络,则服务器套接字。接受();它会工作得很好!我

  • 本文向大家介绍Android获取热点主机ip和连接热点手机ip的代码,包括了Android获取热点主机ip和连接热点手机ip的代码的使用技巧和注意事项,需要的朋友参考一下 其中定义WIFI AP的几个状态 对应于WifiMangaer.java中对这几个状态的定义。 获取WIFI热点的状态: 判断Wifi热点是否可用: 当然在应用中要添加访问WIFI设备的权限: 获取热点主机ip地址的代码: 总结

  • 问题内容: 我有一个正在运行express.js的app.js。 我想将代码转换为coffeescript,并考虑创建一个可编译为app.js的app.coffee,以便可以使用“ node app.js”运行它。 但是后来让我震惊的是,我可以只在app.coffee中写入该文件,然后使用“ coffee app.coffee”运行它。 这是更好的方法吗?我可以在生产中使用“咖啡”运行服务器吗?

  • 本文向大家介绍Android 连接Wifi和创建Wifi热点的实例,包括了Android 连接Wifi和创建Wifi热点的实例的使用技巧和注意事项,需要的朋友参考一下 本文实例讲述了连接Wifi和创建Wifi热点的方法。分享给大家供大家参考,具体如下: android的热点功能不可见,用了反射的技术搞定之外。  Eclipse设置语言为utf-8才能查看中文注释 上代码: MainActivity