# Get port in game when launch Dedicated Server

**URL:** <https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, dedicated-server, port, unreal-engine, question\
**Created:** [January 5, 2016, 8:09am UTC](https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154 "2016-01-05T08:09:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zealot\_Alie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zealot\_Alie](https://forums.unrealengine.com/u/Zealot_Alie)\
**Post date:** [January 5, 2016, 8:09am UTC](https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154/1 "2016-01-05T08:09:12Z")

</div>

I know the port default is 7777 but when a launch mutiple server, 7778,7779,7780 also be used.So i wander the port of every server in game with blueprint or C++ code.

like the log msg of Dedicated Server

[2016.01.05-07.34.29:967][0]LogNet: GameNetDriver IpNetDriver\_0 IpNetDriver listening on port 7779

I think there must be a way to get it?can anybody help?any help is awesome.Thinks a lot 🙂

---

<div class="post-metadata">

**Author:** ![Zealot\_Alie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zealot\_Alie](https://forums.unrealengine.com/u/Zealot_Alie)\
**Post date:** [January 5, 2016, 8:10am UTC](https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154/2 "2016-01-05T08:10:27Z")

</div>

![72949-port.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/0/3e0c2b0e38fbb53816c55d52b71d99c1398b58fd.png)

---

<div class="post-metadata">

**Author:** ![Zealot\_Alie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zealot\_Alie](https://forums.unrealengine.com/u/Zealot_Alie)\
**Post date:** [January 5, 2016, 9:07am UTC](https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154/3 "2016-01-05T09:07:20Z")

</div>

All right…I have got the answer.Just to use GetWorld()-\>GetAddressURL().

---

<div class="post-metadata">

**Author:** ![pprkgraphiks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pprkgraphiks](https://forums.unrealengine.com/u/pprkgraphiks)\
**Post date:** [May 25, 2017, 9:30am UTC](https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154/4 "2017-05-25T09:30:48Z")

</div>

hi, thanks for introduce get port api. but, do you know method to get dedicated server port? i want to get that port. this api is client’s location port.

---

<div class="post-metadata">

**Author:** ![CharlyKs53](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CharlyKs53](https://forums.unrealengine.com/u/CharlyKs53)\
**Post date:** [March 20, 2021, 10:32am UTC](https://forums.unrealengine.com/t/get-port-in-game-when-launch-dedicated-server/343154/5 "2021-03-20T10:32:19Z")

</div>

hy i same problem what i can do
