我想在我的手机上使用TCP服务,需要知道其当前的IP。因此,当手机与其互联网单独连接时,我可以知道其IP。
但是要加快此任务,我需要与我的手机进行本地网络连接,并知道其本地IP。使用PC通过电话的USB / Wi-Fi系列与共享其互联网连接,但在这种情况下,我不希望其互联网。我已经与LAN连接在我的电脑上。我的手机上没有互联网计划。
任何建议?
我想在我的手机上使用TCP服务,需要知道其当前的IP。因此,当手机与其互联网单独连接时,我可以知道其IP。
但是要加快此任务,我需要与我的手机进行本地网络连接,并知道其本地IP。使用PC通过电话的USB / Wi-Fi系列与共享其互联网连接,但在这种情况下,我不希望其互联网。我已经与LAN连接在我的电脑上。我的手机上没有互联网计划。
任何建议?
I want to use a TCP service running on my phone that needs its current IP to be known. So when the phone is connected to its internet as alone, I can know its IP.
However to speed up this task, I need to make a local network connection with my phone and know its local IP.
The USB/Wi-Fi tethering by phone with PC does all that along with sharing its internet connection, however in this scenario, I don't want its internet. I am already connected with LAN on my PC. and have no internet plan on my phone.
Any suggestion?
现在您拥有网络和已知的Android设备的IP地址。
p.s。如果您没有路由器并通过电缆直接连接到Internet - 您可以在PC上模拟WiFi路由器(并非支持所有适配器)。
Now you has network and known IP address for your Android device.
P.S. if you don't have router and directly connected to internet via cable - you can emulate WiFi router on your PC (not all adapters supported).
如果您只想要您本地IP地址。 然后转到终端仿真器,然后键入 netcfg
。 您将看到带有IP地址的接口列表(如果它们已启动)。
If you just want you local IP Address. Then go to terminal emulator and type netcfg
. You will see list of interfaces with their IP Addresses (if they are UP).
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有