BeamMP will never work more than once

Please describe the issue you are having in as much detail as possible:

Hey there, I have an issue where BeamMP will only work once after install, and then if I want to play it again, I have to uninstall it, restart my PC, and reinstall BeamMP.

Here’s what happens:

Fresh Install, first launch: BeamMP works perfectly as expected

Subsequent launches: BeamMP will throw error 10013, port error, and I’m unable to log in or get past the login screen even as a guest.

Fixes Attempted:

-Tried editing the Port in config file: Error 10013 goes away, but still unable to log in or get server list

-Restarting PC: Now I get a new error “connect game to launcher, please start BeamNG via launcher” (Which is what I’ve been doing anyways.). After this error, uninstalling and reinstalling BeamMP fixes it.

-Tried uninstalling and reinstalling BeamMP fully (without PC Restart): 10013 error

-Tried allowing it through Firewall and restarting (No effect, it goes to the error after restart “connect the launcher”)

-Uninstalled BeamMP, restarted PC, Reinstalled BeamMP: It works perfectly fine.

I would love someone’s opinion on how I can fix this as I hate having to restart my PC and reinstall BeamMP every time I want to play.

add your beammp folder to the exclusion in windows defender, that way the files are impossible to penetrate by the pc as they are ignored and it may help you fix the issue by doing that

Just tried this, doesn’t seem to change much. Although I’ve never gotten a windows defender notification regarding BeamMP so I don’t think that was the problem.

SOLVED: (Thanks to this post by krtektm)

Turns out I had to change the port in the config file AND in-game.

Solution: Change port to anything from 49152 to 65535 range in the launcher config file

Then launch BeamMP, go to options > multiplayer, select ‘show advanced options’ and scroll all the way to the bottom. Change the client port to the same port you put in the config file.
Then restart the game.