# Grpc mock server url use in local development (asap)

**URL:** <https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016>\
**Category:** Help Hub\
**Created:** [September 10, 2022, 5:44pm UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016 "2022-09-10T17:44:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![punit](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@punit](https://community.postman.com/u/punit)\
**Post date:** [September 10, 2022, 5:44pm UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016/1 "2022-09-10T17:44:53Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi i have a GRPC client written in Golang, since postman provides a url in mock server how can i use it.

 ![Screenshot 2022-09-10 at 11.09.25 PM](https://us1.discourse-cdn.com/getpostman/original/2X/4/46a95223c6f5432f8d58d6eed08cbc2250f577aa.png)

```auto
func getQuotationGRPCClient() (*grpc.ClientConn, quotationServices.QuotationServiceClient) {
	grpcConnectionInfo := serverutilsgrpc.GrpcConnectionInfo{
			ListenAddress: "g-kw7p55yp8np1m404n1k4639krn2vyd.srv.pstmn.io",
			DialOptions: []grpc.DialOption{grpc.WithInsecure()},
		}
       	conn := serverutilsgrpc.GetGrpcConnection(grpcConnectionInfo, logglyLogger.GetLogrusEntry())
	client := quotationServices.NewQuotationServiceClient(conn)
	return conn, client
}

```

Using this url gives error as “connection error: desc = "transport: Error while dialing dial tcp: address [g-kw7p55yp8np1m404n1k4639krn2vyd.srv.pstmn.io](http://g-kw7p55yp8np1m404n1k4639krn2vyd.srv.pstmn.io): missing port in address"”

Please help asap!!!

---

<div class="post-metadata">

**Author:** ![udit](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/udit/32/5056_2.png) [@udit](https://community.postman.com/u/udit)\
**Post date:** [September 13, 2022, 3:59am UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016/2 "2022-09-13T03:59:38Z")

</div>

@punit You need to establish a TLS connection. Also, from the error message, use port `443`.

---

<div class="post-metadata">

**Author:** ![supply-explorer-1412](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@supply-explorer-1412](https://community.postman.com/u/supply-explorer-1412)\
**Post date:** [March 30, 2023, 4:38am UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016/3 "2023-03-30T04:38:53Z")

</div>

Hi @udit, I am very new to grpc. Just wondering how I can establish a TLS connection to the postman mock servers? Is it using some particular certificate that I can use in my local development?

---

<div class="post-metadata">

**Author:** ![udit](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/udit/32/5056_2.png) [@udit](https://community.postman.com/u/udit)\
**Post date:** [March 30, 2023, 10:39am UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016/4 "2023-03-30T10:39:34Z")

</div>

@supply-explorer-1412 You can enable TLS by toggling the lock icon, refer:

![Screenshot 2023-03-30 at 4.06.56 PM](https://us1.discourse-cdn.com/getpostman/original/3X/5/6/56a5d72c9eb2ae983bb8979e5993446853ca4a40.png)

Certificates are needed only if your server has mTLS setup.

---

<div class="post-metadata">

**Author:** ![supply-explorer-1412](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@supply-explorer-1412](https://community.postman.com/u/supply-explorer-1412)\
**Post date:** [March 30, 2023, 10:02pm UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016/5 "2023-03-30T22:02:58Z")

</div>

Thanks for you reply. I guess I didn’t make this clear. What I wanted to achieve was to use the grpc mock server in my local python development (i.e. my code will start up as a grpc client to call the grpc mock server). At this stage, I am not able to connect to the grpc mock server.

---

<div class="post-metadata">

**Author:** ![supply-explorer-1412](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@supply-explorer-1412](https://community.postman.com/u/supply-explorer-1412)\
**Post date:** [April 14, 2023, 4:02am UTC](https://community.postman.com/t/grpc-mock-server-url-use-in-local-development-asap/39016/6 "2023-04-14T04:02:05Z")

</div>

I have some updates. So I managed to connect to the Postman mock grpc server with grpcurl. But received the following error when I try it with my python client:  
**Cannot check peer: missing selected ALPN property**

I am using python 3.8 and grpc 1.53.
