Changing ports
-
@chrishamm recommended me for another problem to change my DWC port.
I changed
/opt/dsf/conf/http.json
into... "Kestrel": { "Endpoints": { "Http": { "Url": "http://*:1000" } } ...
but after an restart, even if I was able to connect to //my:1000 and DWC was responding, the DWC is not able to connect to the Duetboard.
Is there a second config file which I have to change?
Setup:
SW 3.2 Duet3
not standalone mode -
That's all good but don't forget to restart the web server when you're done:
sudo systemctl restart duetwebserver
I just checked this and it's working as expected.
PS: If it didn't work the first time, make sure you're connecting over HTTP and not over HTTPS. Some browsers change the protocol in the URL from HTTP to HTTPS when the first connection attempt failed.
-
@chrishamm Ok? That's interesting. I used http://192.168.1.7:1000/ and checked that it was http and it did not work.
Changed my config back by removing the port. Restarted Server -> worked again.
-
@JBisc Did you try another port? It's definitely working on my setup with 3.2 and I can confirm the DWC WebSocket+REST requests go to port 1000 too.
Edit: Interesting, it stopped working after a reboot. Can you add
M586 C"*"
to your config file and check if that helps? It might be a CORS problem. -
-
for Christian who is having issues with posting images
-
-
@JBisc Thanks for confirming, I'll work out a fix for the next DWS version.
PS: I've got a fix ready, it will be part of the next software release.