none
WCF REST Service works with IP address but not with hostname RRS feed

  • Question

  • Hi!

    I have a WCF REST Service that went from localhost to public internet. I created a no-ip address, did the port forwarding from the router and all that stuff.

    So lets say that my no-ip account has associated a hostname myname.no-ip.org and a temporary IP address 188.112.10.98:8206 (8206 is the port of my service).

    The strange thing is that when I use the IP address in the URL, everything works fine (GET, POST, DELETE methods) but when I use my hostname instead only GET methods work correctly, the POST and DELETE methods return a 405 status code (method not allowed).

    I have tried a lot of webconfig stuff but couldn't resolve the issue, does somebody have the answer? Please, I have been struggling with this for a couple of days.

    Thanks!

    Sunday, October 26, 2014 4:56 PM

Answers

  • Hi,

    You may refer to the following links for more information:

    http://stackoverflow.com/questions/25618408/can-access-website-using-ip-address-on-a-network-but-not-using-host-name

    http://stackoverflow.com/questions/17067202/application-works-via-ip-address-but-not-via-hostname

    http://serverfault.com/questions/289915/ip-vs-server-machine-name-wcf-hosted-on-iis-7-5

    Monday, October 27, 2014 6:20 AM