# Get public IP with Keycloak Operator and OpenShift

**URL:** <https://forum.keycloak.org/t/get-public-ip-with-keycloak-operator-and-openshift/26104>\
**Category:** Getting advice\
**Created:** [May 17, 2024, 5:53pm UTC](https://forum.keycloak.org/t/get-public-ip-with-keycloak-operator-and-openshift/26104 "2024-05-17T17:53:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gr4ytech](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@gr4ytech](https://forum.keycloak.org/u/gr4ytech)\
**Post date:** [May 17, 2024, 5:53pm UTC](https://forum.keycloak.org/t/get-public-ip-with-keycloak-operator-and-openshift/26104/1 "2024-05-17T17:53:31Z")

</div>

Hello, I’m running OpenShift with the Keycloak operator and was trying to get the publicly exposed IP address instead of the IP of the pod running the container. I’ve added part of the spec file below that’s relevant to the issue I’m facing.

```auto
spec:
  http:
    httpPort: 8080
    httpsPort: 8443
    tlsSecret: keycloak-certificate-tls
  proxy:
    headers: xforwarded
  hostname:
    hostname: sso.hackucf.cloud
  ingress:
    className: openshift-default
    enabled: true

```

Is there anything that I’m misconfiguring? Thanks!

---

<div class="post-metadata">

**Author:** ![Dubridze](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@Dubridze](https://forum.keycloak.org/u/Dubridze)\
**Post date:** [July 23, 2024, 10:00am UTC](https://forum.keycloak.org/t/get-public-ip-with-keycloak-operator-and-openshift/26104/2 "2024-07-23T10:00:50Z")

</div>

Same problem. Do you have solution?
