none
WCF Service on local network with Dinamic IP Address RRS feed

  • Question

  • I'm a newbie to WCF.

    I learnt that in order to address a WCF Service in my local network server, I have to set the <baseAddress> to the IP Address of my local server.

    But what happens if my Internet Service Provider works on a Dinamic IP approach, as I understand it all IP Addresses of my local network machines can change over time, what do you suggest me to do?

    Rafel


    Believe you can do it, and you will!!



    • Edited by RalphDev Tuesday, February 4, 2014 2:49 PM
    Tuesday, February 4, 2014 2:41 PM

Answers

All replies

  • Hi,
    If you use the dynamic IP address, then you can use the hostname for instand.
    In WCF, we can use a public host name or a an IP address in the address.
    If your host name is “mycomputer.private.mydomain.com”, the address will be something like this:
    URI="http://mycomputer.com/simple/Simple.svc".

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by RalphDev Friday, February 7, 2014 1:55 PM
    • Unmarked as answer by RalphDev Friday, February 7, 2014 1:56 PM
    Friday, February 7, 2014 6:43 AM
    Moderator
  • Thank you for answering.

    How do I know the server's public name?


    Believe you can do it, and you will!!

    Friday, February 7, 2014 1:56 PM
  • Thank you for answering.

    How do I know the server's public name?


    Believe you can do it, and you will!!

    Hi,

    For this, please try to check this following article::
    #How to find your Host Name:
    http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-find-your-Host-Name-and-Physical-Address-s.html .

    Best Regards,
    Amy Peng


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, February 10, 2014 1:49 AM
    Moderator