Click here to Skip to main content
15,910,130 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When I run my ASP.Net project, I see in the URL http://localhost:1974. But if I change it to 192.168.1.1:1974, it not found in both my PC and other PCs in the same LAN. In this case, could we configure it to allow this kind of request?
Posted

1 solution

No: you'd need to install and run iis and create your web site so that it runs from within iis. Your address might then be http:\\localhost\name_of_site\. To access from other pcs you'd need to figure out what the ip address of your pc is - perhaps it is 192.168.1.1 (though that is usually the router address - the pc might be 192.168.1.35 or similar). If you're on a lan you may have a name for your pc in which case you could access the site as http:\\name_of_pc\name_of_site\. The address you're seeing above is only good whilst VS is running the internal web server.
 
Share this answer
 
Comments
Bun Leap_kh 6-Mar-12 21:55pm    
Thanks for you response!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900