Click here to Skip to main content
15,897,094 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I build a web page and deploy in IIS so I got a URL(http://localhost:4894/TestWebService_Hello/) also which I run in my local machine it open. But if the same URL I tried to open in the local net work but in another machine then it shows error "localhost:4894" could not found

What should I do to fix the problem so I can see the same page in local net work but another machine.

Thanks & Regards
Indrajit Dasgupta
Posted

Localhost is the same as saying "current machine". So, when you are on a different computer localhost points to that computer and the code is not on it. You need to use the name of the machine the code is actually on or use its IP address.
 
Share this answer
 
Comments
IndrajitDasgupat 1-Aug-13 8:12am    
can you please show me the process how to put IP address / name of the machine with the URL(http://localhost:4894/TestWebService_Hello/)
ZurdoDev 1-Aug-13 8:13am    
Instead of localhost. Localhost means this computer. So, if I go to localhost it will look for that site on my computer which won't work. So, instead fo http://servername/ or http://ipaddress.
Hi,

To access you iis uploaded website in local network, your ip address should be inserted before your app name.

For e.g, http://localhost:4894/TestWebService_Hello
should be
http://your ip/TestWebService_Hello


To find your ip, open command prompt.

insert command "ipconfig", and press enter.

See IPV4 Address, it is your ip address.
 
Share this answer
 

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