Connection between Xbox series x and Epic games on pc

Trying to set up connection between my xbox series x and my pc, (same house) but it wont let both accounts be signed in at once, it just says “you have been returned to the main menu because a change in network connection occurred” to the other platform when i try to connect one. Any fix for this?

disregard this im dumb. had them both signed into the same shift account.