locked
How to access my localhost from other machine? RRS feed

Answers

  • User-179079940 posted

    your machine configure in lan

    and your application configure in iis

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 15, 2012 3:37 AM

All replies

  • User-179079940 posted

    your machine configure in lan

    and your application configure in iis

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, October 15, 2012 3:37 AM
  • User1964107937 posted

    My machine is in LAN.

    Monday, October 15, 2012 3:38 AM
  • User607059406 posted

    step 1: create virtual directory in your local machine

    step 2: second machine should be on same network

    step 3: access it first machine's ip address

    Monday, October 15, 2012 3:39 AM
  • User-179079940 posted

    so your website configure in iis compelesory

    and access your website easily

    Monday, October 15, 2012 3:40 AM
  • User-1716253493 posted

    Try disable your firewall first

    I always use IIS to access from other pc.

    Monday, October 15, 2012 3:43 AM
  • User177399542 posted

    Hi webdev1986
                              First of all make sure your machine have static IP. Then open your IP in browser if you see IIS screen it means its ok. Then open your application from other machines like this: 

    http://YourIP/Source/Iradiare_test.ashx?cd=VR51

    If it is not working switch off your firewall and then try. 



     

      

    Monday, October 15, 2012 3:54 AM
  • User-2143599517 posted

    Hi,

    publish website on IIS and check local mechine firewall. Some times its block the access.

    Try with firewall off mode.

    Regards,

    Anj.

    Monday, October 15, 2012 4:05 AM
  • User2046726303 posted

    Hi,

    try this

    http://stackoverflow.com/questions/646370/how-to-access-your-website-through-lan-in-asp-net

    Monday, October 15, 2012 4:33 AM
  • User1964107937 posted

    I have visual studio. But I don't have IIS. Without IIS can't we access the application from remote machine.

    Monday, October 15, 2012 4:34 AM
  • User607059406 posted

    no, u have install iis

    Monday, October 15, 2012 4:37 AM
  • User177399542 posted

    Yes you have to install IIS.

    To Install IIS

    http://www.iis.net/learn/install/installing-iis-7/installing-iis-on-windows-vista-and-windows-7

    To publish your website

    http://www.codeproject.com/Articles/28693/Deploying-ASP-NET-Websites-on-IIS-7-0



     

    Monday, October 15, 2012 5:26 AM
  • User-179079940 posted

    you need to replace localhost with the name of your computer.  Localhost is for local only.  you can get the name of your computer by opening a command prompt and typing hostname.  Also you may run into firewall issues , and you need to make sure to have visual studio running your site.

    Monday, October 15, 2012 5:30 AM
  • User71929859 posted

    Hello,

    Install IIS express. You can download it from the below link

    http://www.microsoft.com/en-us/download/details.aspx?id=1038

    Then read my blog post on how to deploy your application on IIS

    http://ruchirac.blogspot.com/2012/06/publish-and-deploy-aspnet-application.html

    Tuesday, October 16, 2012 1:05 PM
  • User-475348904 posted

    Hi,

    Some fundamental clerification shold be given here. The web server you are using is a development web server and it only works for localhost domain it will not work for your IP address. To server another computer you should install IIS and it is very easy to install and it is also bundled with windows OS, you just have to install it through windows features. It is available in every OS version except Home editioins.

    Another thing to make clear is that "localhost" is an special hostname which is always 127.0.0.1 and localhost to ip (127.0.0.1) is resolved by an special file "c:\windows\system32\drivers\etc\hosts". you can locate this file in you system, just open it and see the entry there. If you remove this entry then no longer your localhost works.

    Hope it helps.

    Tuesday, October 16, 2012 1:17 PM
  • User465171450 posted

    Probably not. Which version of Windows are you running? Did you look to see if you already have IIS through the Control Panel | Programs | Turn Windows Features on or off (if more recent version of windows)? It may be available just not installed. Also look at IIS express. You will need to bind the website to your current IP address in order for it to work.

    http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-express-overview

    Tuesday, October 16, 2012 1:24 PM
  • User-1438829842 posted

    You need IIS

    Click Here for making your life Easy!

    Good Luck`

    Tuesday, October 16, 2012 1:24 PM
  • User-495795224 posted

    I have visual studio. But I don't have IIS. Without IIS can't we access the application from remote machine.

    IIS is a part of Windows. Go to "Programs and Features" in your control panel (Windows 7). In the left panel click "Turn Windows Features On or Off."  Locate "Internet Information Services" and check the box (if not already done). Then click "ok" to close the dialog. Any new features will be installed at this point.

    Now open your Start menu and search for IIS. You should now see an application to launch.

    An important side note that I have not seen mentioned here.... if you want to access your website from a machine running at home, you have to either pull some tricks (which I won't mention here, but Google or Bind can help) or you have to upgrade your home internet to a Business-Class internet package. This is because ISPs block certain internet traffic that goes to your home network. This includes blocking outside parties from accessing a web server you have setup on your home network.

    Tuesday, October 16, 2012 1:26 PM
  • User-236691393 posted

    Webdev1986,

    you need to enable IIS in your machine. Its simple. Follow the steps.

    http://www.ehow.com/how_5098423_enable-iis.html

    The basic idea is your application should be running on server (here a local server) to access by client (here other pc you are trying to access from).

    Your application should be running always to be accessed. You can't stop the application or shut down the computer and access it from other pc.

    Others have already provided you remaining steps. Hope you will do it.

     

    Thanks.

     

     

    Tuesday, October 16, 2012 1:56 PM