I am writing a WCF webservice. I need to access the service from another ( linux ) machine.
On my PC, I can access the url via 'localhost' just fine, however accessing it from another machine ( replacing localhost with the machine's name ) does not work.
I am relatively new to WCF and my guess is I need to configure it to allow requests from other machines, but I do not know how to do this.
Here is the output from netstat if it helps. Thanks!
C:\Users\bb\Desktop>netstat -na | findstr 57566
TCP 127.0.0.1:57566 0.0.0.0:0 LISTENING
How are you hosting your service? IIS or the built-in web server from Visual Studio? If it's the Visual Studio ("Cassini") web server, you cannot access it from other machines.
See this Stack Exchange question, which is similar: https://serverfault.com/questions/82899/can-i-access-cassini-from-a-remote-machine
Microsoft wants you to deploy your application to IIS for remote connections. Cassini (the Visual Studio web server) is purely for development purposes.
Are you running the service using Visual Studio? The ASP.NET Development Server, which Visual Studio uses by default, can only be accessed from localhost. Depending on what you are doing, you may be able to use IIS Express from within Visual Studio. Otherwise you will need to host your service in IIS.