Invalid token issuer error

We are requesting token from publicIP, say ipPublicA. We trying to logout using internal IP, say ipInternalB. But, we are seeing error with https:// ipInternalB*:8443/auth/realms/master/protocol/openid-connect/logout* -

{

“error”: “invalid_grant”,

“error_description”: “Invalid token issuer. Expected ‘https://ipInternalB:8443/auth/realms/master’”

}

Could any of you tell us how to workaround this issue.