# Server to service communication

**URL:** https://forum.heroiclabs.com/t/server-to-service-communication/2455
**Category:** Runtime Framework
**Tags:** server-framework, golang
**Created:** [March 16, 2022, 3:08pm UTC](https://forum.heroiclabs.com/t/server-to-service-communication/2455 "2022-03-16T15:08:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tunglt1810](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tunglt1810/32/924_2.png) [@tunglt1810](https://forum.heroiclabs.com/u/tunglt1810)
#### Post date: [March 16, 2022, 3:08pm UTC](https://forum.heroiclabs.com/t/server-to-service-communication/2455/1 "2022-03-16T15:08:18Z")

</div>

Hi guys,

I looked at this topic to handle server to server call.

> **[Nakama: RPC Functions - 
Heroic Labs Documentation](https://heroiclabs.com/docs/nakama/server-framework/rpc/#server-to-server)**
>
> Documentation for Nakama Open Source, Nakama Enterprise and Heroic Cloud.

And the example show that port 7350 was used.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/9/901f5f4416746a78b119bf4d4dd31ae5a6d7f262.png)

I also saw that server configuration has config for gRPC port, default value is 7349.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/8/870f1f5d879b9688946f42febdfd43eeaec791d3.png)

So are there any way to use this grpc API server to serve server-to-server call?

---

<div class="post-metadata">

### Author: ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)
#### Post date: [March 16, 2022, 4:50pm UTC](https://forum.heroiclabs.com/t/server-to-service-communication/2455/2 "2022-03-16T16:50:03Z")

</div>

Yes it’s possible to use the gRPC API to support server-to-server communications. You’ll need to use the service definition defined here [https://github.com/heroiclabs/nakama/blob/master/apigrpc/apigrpc.proto#L535](https://github.com/heroiclabs/nakama/blob/master/apigrpc/apigrpc.proto#L535) and run it through the proto toolchain. This will generate the appropriate code you can then use to connect and send/receive data as required.

---

<div class="post-metadata">

### Author: ![tunglt1810](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tunglt1810/32/924_2.png) [@tunglt1810](https://forum.heroiclabs.com/u/tunglt1810)
#### Post date: [March 17, 2022, 3:05am UTC](https://forum.heroiclabs.com/t/server-to-service-communication/2455/3 "2022-03-17T03:05:50Z")

</div>

Thank @tom,  
So that I need to fork and custom the new nakama image. Is it right?

---

<div class="post-metadata">

### Author: ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)
#### Post date: [March 17, 2022, 9:57am UTC](https://forum.heroiclabs.com/t/server-to-service-communication/2455/4 "2022-03-17T09:57:12Z")

</div>

No, there’s no need to fork Nakama.

I’d like to try and understand your use case for communicating between servers via gRPC. Can you give me a run down of what it is you’re trying to achieve? That way I can try and assist you in finding the optimal solution.
