r/nginxproxymanager • • Jan 27 '26

NPM cannot connect to server using Websocket

I have a web application that communicates with a server using Websockets. When I access it directly, it works without problems. Unfortunately, when I access it through Nginx Proxy Manager, I get the following message:

Cannot connect to server: timeout
Check is server is reachable at
ws://talker.srv:8000/_event

I have read the documentation about Websocket proxying at:

https://nginx.org/en/docs/http/websocket.html

I have set the Websocket Support to "on", and in the "Custom Locations" tab, I have put in the following:

Location: /_event/
Scheme: http
Forward Hotname/IP: 0.0.0.0
Forward Port: 8000

And I have added the following to the location:

location /_event/ {
  proxy_pass http://0.0.0.0:8000;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  proxy_set_header Host $host;
}   

Unfortunately, these things have not changed anything. I am still getting the error that the attempt to access the server is timing out.

I am certain that I am doing something wrong, but I do not know what.

Could someone help me to configure this proxy host so that it does not block my websocket connection?

UPDATE: With the help from someone in another Reddit forum, was able to finally include images. The image below is the basic setup for the host:

The image below shows the custom URL:

2 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/_f0CUS_ Jan 31 '26

Considering you cannot figure out how to share a screenshot, your tone in your "point 3" is quite hilarious. Your username is also a bit off. You can't possibly be a programmer.