locked
can we route all api call to ip adress instead of localhost RRS feed

  • Question

  • User190551098 posted

    can we route all api call to ip adress instead of localhost

    Thursday, April 8, 2021 6:47 AM

All replies

  • User753101303 posted

    Hi,

    The purpose being? You want to use 127.0.0.1 rather than localhost? Try https://cyanbyfuchsia.wordpress.com/2014/07/29/make-iis-express-works-with-http127-0-0-1/

    In short when an http query is received by a web server, the web server is trying to find the 'first site that is matching::
    - the ip address
    - the "host header name" ie "localhost" or "site.company.com"
    - the port

    Using the hiost header name is convenient as it allows to easily have multiple sites with a single IP address.

    Thursday, April 8, 2021 9:00 AM