Problem with my site after deploy

Hey everyone im new here,
I did a chat app project in react and socket io that I writing a name and room id and I can talk with someone that write the same room id like me.
In my localhost its working perfectly but in netlify app its not working (the page is ok but the functionality not working)
I noticed I got this message in the console: GET http://localhost:3001/ net::ERR_CONNECTION_REFUSED
Please help :frowning:

Hi @OronArish,

Thanks for reaching out and welcome to Netlify’s Support Forums!

Could you provide a link to the site and provide the steps to reproduce the issue so we can take a look?

The link is:
I had issue with the deployment but someone in the support helped me, after this the site is deployed and everything looks good
So I opened a new tab with the same site, entered the name and room ID like the first one and I wanted to check if the functionality works…
Then when I sent a message nothing happened.
I opened my console and noticed i got an error message:

Maybe I need to change my code because its working perfectly in my localhost?
this project is in react and socket io if its helpful
Thank you!

‫בתאריך יום א׳, 20 בנוב׳ 2022 ב-14:03 מאת ‪Melvin via Netlify Support Forums‬‏ <‪‬‏>:‬

You’re trying to connect to localhost from the production URL:

You need to change the URL to the actual connection.

Hey, sorry for the late replay.
But where I need to change it? can’t find the correct position

‫בתאריך יום א׳, 20 בנוב׳ 2022 ב-18:10 מאת ‪Hrishikesh Kokate via Netlify Support Forums‬‏ <‪‬‏>:‬

hi @OronArish

How are you implementing this in your code? Do you have a setting somewhere where you specify which server to connect?

Can you please share your implementation of your chat app?


Im implementing my url product over here in the backend file:

I need to put it in another place?

‫בתאריך יום ד׳, 23 בנוב׳ 2022 ב-13:17 מאת ‪Gualter Augusto via Netlify Support Forums‬‏ <‪‬‏>:‬

That’s the backend code, not having to do anything what what you’re deploying on Netlify. You need to change your frontend to point to the correct backend URL.

@OronArish , did u able to outcome ur error?


What issue are you having?

same error ( net::ERR_CONNECTION_REFUSED for backend part ) Mr. @hrishikesh , the only difference is I haven’t used in my prj.

You’re connecting to localhost:


You need to connect to your backend.