# Call rpc from special port, like 7351 (console port)

**URL:** <https://forum.heroiclabs.com/t/call-rpc-from-special-port-like-7351-console-port/6181>\
**Category:** Runtime Framework\
**Created:** [May 2, 2025, 10:41am UTC](https://forum.heroiclabs.com/t/call-rpc-from-special-port-like-7351-console-port/6181 "2025-05-02T10:41:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldding](https://avatars.discourse-cdn.com/v4/letter/o/779978/32.png) [@oldding](https://forum.heroiclabs.com/u/oldding)\
**Post date:** [May 2, 2025, 10:41am UTC](https://forum.heroiclabs.com/t/call-rpc-from-special-port-like-7351-console-port/6181/1 "2025-05-02T10:41:16Z")

</div>

We want create some rpc ( for manage , like set some global parameter , or get statistics). These rpc only call form GM tool, and though special port, like 7351 or other port. How do?

---

<div class="post-metadata">

**Author:** ![formatCvt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/formatcvt/32/1127_2.png) [@formatCvt](https://forum.heroiclabs.com/u/formatCvt)\
**Post date:** [May 6, 2025, 12:50pm UTC](https://forum.heroiclabs.com/t/call-rpc-from-special-port-like-7351-console-port/6181/2 "2025-05-06T12:50:48Z")

</div>

Probably you can run your HTTP server in the `InitModule` function in Go,

> **[Go by Example: HTTP Servers](https://gobyexample.com/http-servers)**

or use the `RegisterHttp` function to create a link and restrict access via proxy for example

> **[Go Runtime](https://heroiclabs.com/docs/nakama/server-framework/go-runtime/#register-raw-http-handlers)**
>
> Learn how to configure and develop your project using Go for your game server custom logic.
