# Unable to execute CURL command on Schema Registry REST API

**URL:** <https://forum.confluent.io/t/unable-to-execute-curl-command-on-schema-registry-rest-api/7811>\
**Category:** Schema Registry\
**Created:** [9 May 2023 11:07 UTC](https://forum.confluent.io/t/unable-to-execute-curl-command-on-schema-registry-rest-api/7811 "2023-05-09T11:07:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjeetborate](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ranjeetborate](https://forum.confluent.io/u/ranjeetborate)\
**Post date:** [9 May 2023 11:07 UTC](https://forum.confluent.io/t/unable-to-execute-curl-command-on-schema-registry-rest-api/7811/1 "2023-05-09T11:07:40Z")

</div>

I’ve 3 instances of Schema Registry up and running on a unix server with specific port numbers specified corresponding to the listener parameter in each of the schema-registry.properties file. When I try to trigger the API using CURL command on the server, it fails returning **Failed to connect connection refused.** The below is the simple CURL command which I’m trying to execute.

1. curl -X GET [http://localhost](http://localhost):PORT\_NUMBER/subjects
2. curl -X GET http://HOST\_NAME:PORT\_NUMBER/subjects

Can anyone help me with this issue?
