简体   繁体   English

从USB连接的android设备连接到笔记本电脑localhost

[英]Connecting to my laptops localhost from my USB connected android device

I have coded a C# MVC Internet Application with Visual Studio 2013 Express for Web on my laptop. 我已经在笔记本电脑上使用Visual Studio 2013 Express for Web对C#MVC Internet应用程序进行了编码。 I can compile and connect to this application with the following web address in my laptops browser: localhost:22101/ 我可以在笔记本电脑浏览器中使用以下网址编译并连接到该应用程序:localhost:22101 /

I am wishing to connect to this address in an Android application that I have coded, but am having some trouble connecting to the localhost on my laptop. 我希望在我编写的Android应用程序中连接到该地址,但是在连接到笔记本电脑上的本地主机时遇到一些麻烦。 My laptop is connected with a USB cable. 我的笔记本电脑已通过USB电缆连接。

I have tried the following: 我尝试了以下方法:

  1. Tried to connect to my laptops IPv4 address from ipconfig (10.1.1.3)... no connection found. 试图从ipconfig(10.1.1.3)连接到我的笔记本电脑的IPv4地址...未找到连接。
  2. Tried to connect to 10.0.2.2... no connection found 试图连接到10.0.2.2 ...找不到连接

My laptop and cell phone are both connected to the same wireless router. 我的笔记本电脑和手机都连接到同一无线路由器。

Is this possible? 这可能吗? Can I please have some help with this? 我可以帮忙吗?

Thanks in advance 提前致谢

The local development server doesn't respond to external requests. 本地开发服务器不响应外部请求。

You will need to run it on a full blown iis I'm afraid. 恐怕您将需要完全运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 USB设备已连接 - USB Device Connected 在我停止libusbdotnet应用程序后,USB设备保持连接和断开连接 - USB device keeps connecting and disconnecting after I stop my libusbdotnet application C#如何从多个连接相同的USB设备中找出特定的USB设备? - C# How to find out particular USB device from multiple connected same USB device? 如何检测连接到我的PC的ADB设备 - How to detect ADB device connected to my PC 是否可以在通过蓝牙连接的android设备和通过USB连接的Arduino之间进行串口通信? - Is it possible to do serial port communication between android device that is connected by Bluetooth and Arduino that is connected by USB? 通过 USB 连接的模拟设备 - Mock Device connecting through USB 查找与我的Android手机连接到同一WiFi网络的设备名称和IP地址 - Finding the device names and IP addresses connected to the same WiFi network as my Android phone 如何从软件中捕获精确的USB-HID设备交互,并在我自己的代码中重新实现它 - How to catch exact USB-HID device interaction from a software and reimplement it in my own code 以编程方式从PC识别连接的设备是否为Android - Programatically identify if a connected device is Android from PC 获取已连接USB设备的端口名称 - Getting the port name of a connected USB device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM