# NonProxyHosts with GCP PubSub - Kafka connector

**URL:** <https://forum.confluent.io/t/nonproxyhosts-with-gcp-pubsub-kafka-connector/7922>\
**Category:** Self-Managed Connectors\
**Created:** [22 May 2023 21:53 UTC](https://forum.confluent.io/t/nonproxyhosts-with-gcp-pubsub-kafka-connector/7922 "2023-05-22T21:53:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.confluent.io/u/Nick)\
**Post date:** [22 May 2023 21:53 UTC](https://forum.confluent.io/t/nonproxyhosts-with-gcp-pubsub-kafka-connector/7922/1 "2023-05-22T21:53:28Z")

</div>

Hi,

We have been running into an issue where we need to run the PubSubSourceConnector behind a company Proxy to pull messages from our GCP PubSub topics into our on premise Kafka. We have tried setting the JVM parameters in order to set the proxy settings, e.g.  
“-Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyHost= -Dhttps.proxyPort= -Dhttp.nonProxyHosts=”

However it seems that the nonProxyHosts jvm parameter is not being honored by the connector, as a result it tries to use the proxy for all hosts including our on prem license server etc.

Is this a bug similar to the snowflake kafka connector one fixed here? Where they were not passing the nonProxyHosts through to the underlying connection properties? [Snowflake Community](https://community.snowflake.com/s/article/nonProxyHosts-parameter-is-not-honored-with-JDBC-driver)

Or are we doing something wrong and nonProxyHosts is working for this connector.

Thanks

Nick
