Hello friends! I have been working on a prototype multiplayer game using unreal c++ and blueprint. I have tested two instances of the packaged game and on LAN it works as expected. One instance is the listen server and the other is just a client.
For simplicity the server is setup like this:
servertravel [mapnamehere]?listen
and the client connects by
open 127.0.0.1
All good! However, I am concerned. I am now trying to enable port forwarding on my router to see if this type of thing would work for two computers on different networks. I believe I have set up port forwarding correctly & there are no firewalls on my computer or my router. I have run my listen server as before, and once the game loads, I minimize and use a site such as “http://ismyportopen.com” (giving it my global ip and port 7777) and it says “Port is closed.” What a bummer!!!
So I started wondering Is this listen server even around locally? Maybe I succesfuly forwarded by port but there was nothing listening on my mac. So, on my mac I have tried to ping this port when my listen server was running, In terminal I typed:
$ telnet 127.0.0.1 7777
Trying 127.0.0.1…
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host
Wow! Now I am confused. It should be using port 7777 and I CAN connect to it on LAN, so presumably that port should be listening right? I have also given a good look at the udp servers listed via
$ netstat -a -b
But I can not find any mention of 7777.
Can anyone help/give me advice? At this point I am struggling, I really want to show my friends the cool game I made for them
I should mention I’m using unreal 4.12.5, mac os x el capitan, and have
[OnlineSubsystem]
DefaultPlatformService=Null
In my DefaultEngine.ini as well as
DynamicallyLoadedModuleNames.Add(“OnlineSubsystemNull”);
In my Build.cs, as this is a mostly c++ project. I should also mention I’m super sad :‘’‘’( please help!!!