Forum Discussion

sismail786's avatar
8 years ago

Can we add IP address instead of domain name in HTTP Client

Hi All,

 

I want to connect with third party REST API which is developed by us only and hosted on internal machine which is exposed to outer world through public IP. As per blog, I saw that for HTTP GET request to third party API, I have to use http client  to make the hosting domain allowable for http request. 

 

Now my doubt is can I put the IP of the domain in http client or I have to use a domain name. Since I don't have a domain name but machine on which API are hosted is exposed external using public IP.  The task is in development stage so how can I test my API in community.

 

Anyone can please help me out in this.

 

Thanks - Deepak

 

1 Reply

  • sismail786- You must need to pass the domain name in http.client -> Allowed domain name as IP address is not allowed for this setting. You need to host your API to any domain to access it.

     


    Give kudos if you find my posts helpful or mark solution if it answers your query.
    Tariq