Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Resolved Question

Access IIS Site on W10 Pro 64bit PC on a Private Network

Nov 2, 2018 10:30PM PDT

I have a Windows 10 Pro 64bit notebook with a website hosted by IIS. The notebook PC is not connected to any network and does not have internet access. I am using a product from the Microsoft Store called WiFi Direct Access Point (WDAP) to create a network that an Android device can use to access the PC via a wireless connection.

WDAP has assigned the notebook PC the IP address of 192.168.137.1 and the Android device connects and is assigned 192.168.137.### (### changes each time I connect).

The website I want to access with the mobile device can be accessed on the PC, but it is not being recognized on the mobile device.  The mobile device browser (Chrome) is reporting that the website is not accessible.  I have tried using the PC's name and the IP Address of the PC in the URL when accessing the website.

Any suggestions on how to accomplish this task would be greatly appreciated.

Discussion is locked

ggkcdn has chosen the best answer to their question. View answer

Best Answer

- Collapse -
Access IIS Site on W10 Pro 64bit PC on a Private Network
Nov 4, 2018 7:37PM PST

I found the problem.

The API was setup in IIS with both an IP Address and a Host Name (abc.def.com). The Android device could not use the Host Name as it had no way of resolving the IP address from the Host Name. If a Host Name exists, it appears that IIS forces you to use it and IIS will not recognize the IP address.

Once I removed the Host Name from the Bindings screen for the API in IIS, I was able to use the IP address to successfully send and receive REST requests from the Android device.

- Collapse -
Answer
Re: Access Point
Nov 3, 2018 1:18AM PDT
- Collapse -
Re: Access Point
Nov 4, 2018 1:42PM PST

Thanks for your responses. I disabled all firewalls on the PC and now I can access IIS websites from the mobile device.

I have an API running in IIS that I still cannot access though. I have used REST API Client to try to access the API from my Android device, but it gives the message "No Response: No Connection Error". I can successfully send REST requests from the PC itself.

If I can get this working then I should have everything I need.

- Collapse -
Re: Access Point
Nov 4, 2018 7:34PM PST

I found the problem.

The API was setup in IIS with both an IP Address and a Host Name (abc.def.com). The Android device could not use the Host Name as it had no way of resolving the IP address from the Host Name. If a Host Name exists, it appears that IIS forces you to use it and IIS will not recognize the IP address.

Once I removed the Host Name from the Bindings screen for the API in IIS, I was able to use the IP address to successfully send and receive REST requests from the Android device.

- Collapse -
Answer
Let's start with something basic.
Nov 3, 2018 10:36AM PDT

A LAN is a private network.

So why not connect it to a router which does or does not have an Internet connection and do this?