code-d
code-d copied to clipboard
How to change dcd server port
On my work computer (windows 10) code-d is not able to connect to dcd-server. Socket exceptions are thrown in the log. The executable dcd-server.exe is running (windows task list).
I also know what the issue is, by a small experiment. The default port of dcd-server is too small and blocked by the McAffee firewall. If I start the server and client from the console with a higher port (e.g. 50000) the communication works. With the default port it does not work.
Could you add a setting to code-d to easily change the port of dcd-server?
this is currently hardcoded
https://github.com/Pure-D/serve-d/blob/1a3bf386e75dbaa5aa8dd171edc81eea65e922c6/source/served/extension.d#L903
but it may make sense to make this configurable and also higher by default (as it's not supposed to be connected from externally anyway)
I did some more tests. It seems just the default port of dcd-server 9166 is blocked by the firewall. One port lower or higher works without problem. Therefore if you could add a setting for choosing the port, this would be really great.