Is it possible to create a dedicated server in unreal engine 4.13.2 for an Android game ?'

Hi everyone,

I am trying to create a game for Android, where multiple players connect each other over internet and play together.
therefore the server cannot be on any client and hence requiring a dedicated server.

I have looked into this in many forms and the only way specified in these is that we download a source file form Github.

First let me tell that i am not so good at c++ scripting, more of a blueprint guy here.

So my question here is weather creating a dedicated server now possible in ue 4.13 for mobile games ?

Mobile devices in network are no different then desktop or even server and most code of UE4 works on mobile, so yes you can connect from mobile to desktop and dedicated server and if im not mistaken you can even host game in mobile. Main difference here is that not all onlinesubsystem is avable on all platforms (for example there no Steam on Android), but with raw connections i don’t know why you even asking this question ofcorse it gonna work;p

Thank you for your immediate response.

i have already created a game, where one mobile hosts the game acting as server and the other joins as a listener and it works fine but this works only over lan, wifi or by creating Hotspot on your device and sharing the IP. However my attempt here now is to create a dedicated server so that mobile clients can join this server from their respective places over the Internet.

The Ideology is a little complex to my basic understanding of networking hence i am a little stuck. Could you please help me out in this, Can you please suggest me any tutorials or documentations that could help me achieve building a dedicated server based game for mobile.

Thanks in advance

Thank you for your immediate response.

i have already created a game, where one mobile hosts the game acting as server and the other joins as a listener and it works fine but this works only over lan, wifi or by creating Hotspot on your device and sharing the IP. However my attempt here now is to create a dedicated server so that mobile clients can join this server from their respective places over the Internet.

The Ideology is a little complex to my basic understanding of networking hence i am a little stuck. Could you please help me out in this, Can you please suggest me any tutorials or documentations that could help me achieve building a dedicated server based game for mobile.

Thanks in advance

this is my video tutorial on how to build a standalone dedicated server in unreal engine - I do this for my android game - so yes its 100% possible Build Standalone Dedicated Server Tutorial - Unreal Engine 4.7.2 - YouTube

1 Like

Hi,
Thanks for your reply.

I have followed all steps and i was able to successfully build the dedicated server.
but the connection is only being established if your on the same network i mean only local connections are taking place with the local ip.

What do i need to do if i require to connect the dedicated server from internet from my friends place or somewhere outside?

Please excuse me if my terminologies are not right. i am not so good at networking.

Thanks man.

you are going to want to open tcp/udp port 7777 on both your router and your computer - also your router needs to forward those ports to your server

you can also integrate steam, that kind of helps take care of this problem for you

also if you don’t mind - please accept my answer, I’d really like to earn a badge on the forum