x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Cross-platform multiplayer networking iOS, Android and PC not working

Hi,

I can't seem to get cross-platform working using local LAN with blueprints. My goal is to have PC setup as a dedicated server then iOS and Android as clients communicate with each other via PC. I have tried many suggested solutions provided in the forum but so far no luck. The solutions that I have tried for Android (client) and PC (server):

  1. [OnlineSubsystem] DefaultPlatformService=Null - some people claim that this works for them but it didn't work for me

  2. Use console connect directly to server ip address e.g "open {ip address}" this didn't work

  3. In the log I saw "userId=Invalid", I added this "[ConsoleVariables] net.IgnorePackageMismatch=1" in DefaultEngine.ini, now I get proper userId but that still didn't solve the issue

  4. I added "android.permission.INTERNET, android.permission.ACCESS_NETWORK_STATE, android.permission.ACCESS_WIFI_STATE" in extra permissions in Android but that didn't work

  5. I turned off firewall and anti virus in PC still no good

  6. I checked my router to make sure firewall is turned off, Android and PC are on the same wifi but still no good

  7. I also tried to use Steam (modified DefaultEngine.ini) and turned off "Use LAN" in blueprint but that doesn't work

[OnlineSubsystem] DefaultPlatformService=Steam PollingIntervalInMs=20

[OnlineSubsystemSteam] bEnabled=true SteamDevAppId=480 GameServerQueryPort=27015 bRelaunchInSteam=false GameVersion=1.0.0.0 bVACEnabled=1 bAllowP2PPacketRelay=true P2PConnectionTimeout=90

From the log i can see the android phone (Samsung S6 Edge) is exchanging IP address with PC but that's it. I have no idea what's going on, can you please help. I've attached simple project as well

https://s3-us-west-2.amazonaws.com/lenspublic/installers/SimpleNetworking.zip

LOG

LogOnline: Verbose: Listening for LAN beacon requests on 14001 LogNet: Browse: /Game/ThirdPersonBP/Maps/ThirdPersonExampleMap?listen LogLoad: LoadMap: /Game/ThirdPersonBP/Maps/ThirdPersonExampleMap?listen LogNet: World NetDriver shutdown IpNetDriver_46 [GameNetDriver] LogNet: DestroyNamedNetDriver IpNetDriver_46 [GameNetDriver] LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 127.0.0.1:17777, Name: IpConnection_72, Driver: GameNetDriver IpNetDriver_46, IsServer: NO, PC: PlayerController_1, Owner: PlayerController_1, Channels: 9, Time: 2017.11.03-05.15.57 LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 127.0.0.1:17777, Name: IpConnection_72, Driver: GameNetDriver IpNetDriver_46, IsServer: NO, PC: PlayerController_1, Owner: PlayerController_1 LogExit: GameNetDriver IpNetDriver_46 shut down LogAIModule: Creating AISystem for world ThirdPersonExampleMap LogLoad: Game class is 'ThirdPersonGameMode_C' LogTemp: Display: ParseSettings for GameNetDriver LogTemp: Display: ParseSettings for IpNetDriver_48 LogTemp: Display: ParseSettings for GameNetDriver LogInit: WinSock: Socket queue 131072 / 131072 PacketHandlerLog: Loaded PacketHandler component: Engine.EngineHandlerComponentFactory (StatelessConnectHandlerComponent) LogNet: GameNetDriver IpNetDriver_48 IpNetDriver listening on port 7777 LogWorld: Bringing World /Game/ThirdPersonBP/Maps/UEDPIE_2_ThirdPersonExampleMap.ThirdPersonExampleMap up for play (max tick rate 0) at 2017.11.03-16.15.58 LogWorld: Bringing up level for play took: 0.002765 LogLoad: Took 0.384316 seconds to LoadMap(/Game/ThirdPersonBP/Maps/ThirdPersonExampleMap) LogNet: UChannel::ReceivedSequencedBunch: Bunch.bClose == true. ChIndex == 0. Calling ConditionalCleanUp. LogNet: UChannel::CleanUp: ChIndex == 0. Closing connection. [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 127.0.0.1:58496, Name: IpConnection_74, Driver: GameNetDriver IpNetDriver_45, IsServer: YES, PC: PlayerController_0, Owner: PlayerController_0 LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 127.0.0.1:58496, Name: IpConnection_74, Driver: GameNetDriver IpNetDriver_45, IsServer: YES, PC: PlayerController_0, Owner: PlayerController_0, Channels: 9, Time: 2017.11.03-05.15.58 LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 127.0.0.1:58496, Name: IpConnection_74, Driver: GameNetDriver IpNetDriver_45, IsServer: YES, PC: PlayerController_0, Owner: PlayerController_0 LogOnline: Warning: OSS: No game present to leave for session (GameSession) LogOnline: Warning: OSS: No game present to leave for session (GameSession) LogOnline: Verbose: Received 16 bytes from 192.168.1.16:14001 LogOnline: Verbose: Sending 198 bytes to 255.255.255.255:14001 LogOnline: Verbose: Received 198 bytes from 192.168.1.12:14001

alt text

Product Version: UE 4.18
Tags:
more ▼

asked Nov 03 '17 at 05:38 AM in Using UE4

avatar image

aimsta
0 1 1 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Fixed it. It's now working on Android and iOS

more ▼

answered Nov 15 '17 at 04:01 AM

avatar image

aimsta
0 1 1 4

avatar image CometGoat Nov 19 '17 at 04:51 PM

Awesome! Could you say how you solved this problem?

avatar image lam-game Jan 10 '19 at 07:26 PM

do you have any information and thank you

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question