Localhost refused to connect

I’m Google ai studio while working on my project after I did a change I Accdentialy Affected the local Dev server (local host) so it refused to connect I was trying to make my app production Ready, it refused to connect but the problem even if I go back to a previous version still the same error happens