AEMaaCS Dedicated Egress IP | Community
Skip to main content
Level 3
May 21, 2024
Solved

AEMaaCS Dedicated Egress IP

  • May 21, 2024
  • 2 replies
  • 1816 views

Hi all,

 

We have created a dedicated egress ip network infrastructure configuration for AEMaaCS program and trying to connect to SOLR server using AEM_PROXY_HOST and port orig.

Is there a way to find whether the request is going from the dedicated egress ip or not?

 

Thanks,

Pardeep

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

You don't need to read all these properties manually, the HttpClientBuilder can do that for you if you use the proper methods (as shown in the screenshot).

 

Also it seems that your solr URL looks like this: localhost:3128:URL/solr/...

Which seems really odd to me.

 

Please use the recommended way of 

HttpClients.createSystem() which reads all relevant information and sets them accordingly. And then you can connect to your Solr instance just by providing its URL; the proxy handling is completely transparent.

 

 

2 replies

Shashi_Mulugu
Community Advisor
Community Advisor
May 22, 2024

@pardeepg4829047 i am assuming you are trying to push content from aem to solr so if the connection is not successful you could see ip address in solr logs, it should show IP within ingress range

Rohan_Garg
Community Advisor
Community Advisor
May 22, 2024

Hi @pardeepg4829047,


You can refer to the below blog which mentions that by default not all HTTP clients use the dedicated egress IP. You might have to check whether your code is actually using the configured proxy.

@joerghoh's blog AEM CS & dedicated egress IP

 

 

Hope this helps!
Rohan Garg

Level 3
May 22, 2024

Hi Rohan,

 

We have used the proxy for the HttpClient and using HttpSolrClient.Builder(solrURL).withHttpClient(httpClient) to get the SOLR client.

Currently its not working and looking for help on what could be the issue.

 

Attaching below the code snippet used for creating the SOLRClient. Here core parameter refers to collection in SOLR server and urls array is the array of port origins like 30001, 30002.

 

 

@joerghoh  - Can you please help if we are missing any thing here ?

 

Thanks,

Pardeep Gera 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
May 23, 2024

You don't need to read all these properties manually, the HttpClientBuilder can do that for you if you use the proper methods (as shown in the screenshot).

 

Also it seems that your solr URL looks like this: localhost:3128:URL/solr/...

Which seems really odd to me.

 

Please use the recommended way of 

HttpClients.createSystem() which reads all relevant information and sets them accordingly. And then you can connect to your Solr instance just by providing its URL; the proxy handling is completely transparent.