# Exposing Java Client Metrics to public host

**URL:** <https://discuss.prometheus.io/t/exposing-java-client-metrics-to-public-host/1252>\
**Category:** General Help/Support\
**Created:** [October 19, 2022, 3:32pm UTC](https://discuss.prometheus.io/t/exposing-java-client-metrics-to-public-host/1252 "2022-10-19T15:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jrod99](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@jrod99](https://discuss.prometheus.io/u/jrod99)\
**Post date:** [October 19, 2022, 3:32pm UTC](https://discuss.prometheus.io/t/exposing-java-client-metrics-to-public-host/1252/1 "2022-10-19T15:32:11Z")

</div>

Hello,  
I am using Java Client to expose metrics. In my [localhost.com:8484/metrics](http://localhost.com:8484/metrics) I can see my metrics.  
When I run my application:

```auto
@SpringBootApplication
@EnableConfigurationProperties
public class CustomApp{

    public static void main(String[] args) {

        SpringApplication.run(CustomApp.class, args);
        try {
            HTTPServer server = new HTTPServer.Builder()
                    .withPort(1234)
                    .build();
        } catch() ...

```

things seem to work fine as I get no error and it doesn’t enter the catch block. However, when I try to find the metrics on [publichost.com/8484/metrics](http://publichost.com/8484/metrics) it doesnt find the endpoint or point.  
Any idea on what I’m missing?
