Knowledge Base: How can I restrict sessions or lobbies to PC players only?

For games that are not available on mobile, you can set the AllowedPlatformIds to EOS_OPT_Steam and EOS_OPT_Unknown when creating a session or lobby. This will prevent console players from joining the session or lobby. Note that EOS_OPT_Unknown include all platforms that are NOT: SwitchSonyXbox…

https://dev.epicgames.com/community/learning/knowledge-base/Eb2E4/epic-online-services-how-can-i-restrict-sessions-or-lobbies-to-pc-players-only