web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Active Discussion

How to force a direct connection between CRM Server and ADFS when there is additional networking layer.

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

This post can be used for troubleshooting on-prem authentication issues, access issues, custom App. connectivity, Outlook plugin not working, etc.

Once there is custom NLB in place and there are authentication/access issues. We need to validate if this doesn't happen/reproduce with a direct connection.

In scenarios where you have a configuration that ADFS cannot connect directly to CRM servers, but the connection gets redirected through an NLB or proxy we need to validate if bypassing them the issue experienced is still present. 

In an on-premise environment we can indicate from where the requests are coming from by using the "ping" command via PowerShell to the external URL or the auth. URL or discovery URL and check whether the response is coming from the LOCAL IP (of CRM Servers) or from a different IP address(external).

 FORKA.png

 

*Per configuration guidance the auth. URL host A entry and the CRM external URL host A and discovery URL host A entry should be pointing to the IP of CRM application server*

 FORKA1.png

 FORKA2.png

 FORKA3.png

Example:

 FORKA4.png

Confirm the local IP addresses of the CMR server.

You can do that through Server manager - Local server - Private Switch

 FORKA5.png

Ran command: "ipconfig" and confirm the IPv4 Address

 FORKA6.png

We can confirm the origin of the (external) IP address, but in order to test if the configuration of CRM with AD FS is working fine without the 3rd party NLB/Proxy we can perform the following actions on both ADFS and CRM Servers:

Locate the host. files on both machines:

C:\Windows\System32\drivers\etc – hosts

 FORKA7.png

Open with Notepad.

On both machines enter the following entries in the hosts file and save (for example):

172.16.0.100 auth.contoso.com

172.16.0.100 crmv9.contoso.com

172.16.0.100 dc.contoso.com

 FORKA8.png

!IMPORTANT!
Take backup of the host files in their original state prior to making any changes.

======================================================

These steps should be related to the respected IP that the machine has and also the dedicated DNS entries for the auth. and CRM external URL (which should mimic the org.name) and Discovery URL.

That way we will force the connection between the machines to happen on local level and by-pass the network configuration.

Following this you can test the connection/behavior from the CRM Server's browser. If you are able to resolve the scenario from the local machines, but from client machines (outside of the local setup) you are still facing the problem/issue it would mean that the issue is on your network level and you should review the scenario with the help of your network team to validate if a direct connection makes the problem go away.

  • Leah Ju Profile Picture
    Microsoft Employee on at

    Thanks for sharing! :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
NeerajPawar Profile Picture

NeerajPawar 31

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 19 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans