How to view my Localhost website from my mobile Browser?

Thread Starter

Shafty

Joined Apr 25, 2023
327
I have tried all my google searches but still cannot rectify the same. Please help.

I have created a vb.net webform app. It's properly loading on laptop's Browser (Edge) both on Https and Http but not on mobile. Please help. Both devices are under the same wifi only but still not. Thanks :)
 

Thread Starter

Shafty

Joined Apr 25, 2023
327
What are you running as your web server?
Developing a Web form to receive orders from customers. Currently receiving orders through WhatsApp voice messages or through SMS messages. Just a single form is needed. Will make it responsive to mobile screens later. Anyways, i am very curious to know the answer for this question now before considering alternatives. My question is simple. How to view a IIS default website in a mobile browser running on the same network?
 

eetech00

Joined Jun 8, 2013
4,704
I have tried all my google searches but still cannot rectify the same. Please help.

I have created a vb.net webform app. It's properly loading on laptop's Browser (Edge) both on Https and Http but not on mobile. Please help. Both devices are under the same wifi only but still not. Thanks :)
you can’t view the local host on your phone because local host means what it sounds like. The local host is assigned IP 127.0.0.1 which is non-routeable across the internet (thank goodness).
 

Ya’akov

Joined Jan 27, 2019
10,226
Sockets are bound to a particular address. The name “localhost” has an address of 127.0.0.1 which is not the same as your 192.168.x.x RFC1918 ”private“ address. You will need to find an option that binds the httpd to the 192.168/16 address. 127.0.0.1/localhost is unreachable from outside the computer ir is assigned to.
 

be80be

Joined Jul 5, 2008
2,394
192.168.*.* do you think some one could get there from here
Read that page
https://medium.com/@gatm50/iis-express-accepting-connections-from-local-network-4158dd2e0139

Think he had the same problem
Sometimes is necessary to expose your local environment outside of the walls of your computer, it could be for testing purposes or rapid prototyping. One of the common usages that I have is to test my local website with some mobile devices, even before publishing to my test site in Azure.
 
Top