0

I created and deployed WCF service and web application(client) on IIS 7.5 problem : config of the client referring to the end point as ex: http://(IP address)/app/abc.svc this works fine. when i try to change IP address to Server Machine name(ex:http://machinename/app/abc.svc) its unable to access to the service. requirement: i need configure with machine name not with IP address.

  • 1
    In a Windows environment, when you access a machine by machine name only you either need to use WINS/NetBIOS (legacy) or have the client configured with a DNS suffix search list. – Chris Haas Jul 12 '11 at 17:25

1 Answers1

1

It depends on your network setup. Is it safe to assume the client who's trying to access your service inside the same domain as you? You can check your NetBIOS name, as Chris said, to verify you're using the right name to access your machine. Check it from their location to see how it shows up from their machine.

The other, simpler option, would be to edit the client's host file. Add an entry to go from whatever name you want to your ip. The only issue with that is whether there will be multiple machines accessing it, but if that's the case maybe it's worth registering a dns.

Precious Roy
  • 126
  • 3