Clien Travel Failure- Invalide URL (packaged project)

I made a multiplayer system to host a server on local machine using blueprints. This project seems to be working fine when im playing in the editor with multiple clients but when the game is packaged I get an error: TravelFailure: Client travel failure, and TravelFailure: InvalidURL