Voice chat with OnlineSubsystemNull

Hi everyone,

A couple of weeks ago I managed to enable voice communication between two UE4 builds using OnlineSubsystemSteam on a local network with two separate computers. After upgrading to UE4 4.11, I am now unable to connect my client to my server so I am trying to move to OnlineSubsystemNull without any luck. The connection works but it is now the voice communication that is broken. Here is my setup:
In the build.cs, I’ve added the required modules (OnlineSubsystemNull,OnlineSubsystemUtils and OnlineSubsystem):

using UnrealBuildTool;

public class CodeTutorial : ModuleRules
{
	public CodeTutorial(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore","OnlineSubsystemNull", "OnlineSubsystemUtils" });

		 //Uncomment if you are using online features
		 PrivateDependencyModuleNames.Add("OnlineSubsystem");
	}
}

In the DefaultGame.ini, I’ve added:

[/Script/Engine.GameSession]
MaxPlayers=2
bRequiresPushToTalk=false

And finally, in the DefaultEngine.ini, I’ve added:

[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemUtils.IpNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[OnlineSubsystem]
DefaultPlatformService=Null
bHasVoiceEnabled=True

[Voice] 
bEnabled=True

I am able to connect my client to my local server with the command lines:

open level0?listen  on the server side
open [ipServer] on the client side

I’ve tried to enable voice with the command:

ToggleSpeaking true

on both side but still no voice communication. My hardware work fine, connection, ports everything… Once again, it worked a little while ago but it broke after upgrading to 4.11.

Is there anything that comes to your mind? Thanks in advance!

Hello AlexWe,

Are you still seeing this issue occur in 4.11.2?

Hello,

I am marking this topic as resolved for tracking purposes, as we have not heard from you in a few days. If this issue persists, feel free to respond to this thread. For any new issues, please create a new Answerhub topic.

Have a great day

open IP command not use Onlinesubsystem