While accessing your ASP.NET application from a different machine in a LAN environment you have to consider/do the following:
1. Create a Application/virtual directory in IIS for your application on the machine (Server) you want to host.
2. Ping the IP address of the server from other machine on the LAN from where you want to access the application, to ensure your server can be reached.
3. Note
localhost will not be accessible from a remote machine, instead use the below:
Use http://<ip>:<port>/
Ex: http://10.23.103.5:8080/MyApplication/login.aspx
Will Not Work: http://localhost:8080/MyApplication/login.aspx
</port></ip>
4. You will find the IP address by following the below steps, on the server:
i. Start > Run
ii. Type
cmd and click on enter key
iii. DOS command prompt opens
iv. Type
ipconfig and click on enter
v. Note down the
IPv4 Address i.e. your IP address of the machine/
5. You can find the port number in IIS where it was hosted.