shadow-cljs

Jan Šuráň 2025-02-23T13:22:56.477709Z

I already have 1 shadow instance running for something else and starting another one doesn't really work. Can I change the port where tha shadow instance is started or do something else about it? I let this run for a few minutes, it went to a port number around 13000, until I finally killed it.

Jan Šuráň 2025-02-23T13:29:17.743899Z

I tried setting custom options like this (I only want to use https anyway), but it still doesn't work:

:http     {:ssl-port 3434
           :host     "localhost"
           :port     9634}

Jan Šuráň 2025-02-23T13:31:54.552069Z

It says that the port 9634 and all ports above are taken. But if I specify something like 7777 , it still cannot find a free port...

Jan Šuráň 2025-02-23T13:42:23.094359Z

Restaring the PC helped, but I still don't know, why it didn't work...

thheller 2025-02-23T14:07:27.463299Z

that is odd indeed. maybe you blocked the port creation via firewall or so? but yeah the logic is to automatically pick the next port when the original is already used

thheller 2025-02-23T14:07:52.982309Z

when hardcoding ports this logic is skipped and it'll just fail

Jan Šuráň 2025-02-23T14:15:05.437959Z

I don't think I was messing ith any firewall settings or something similar.

thheller 2025-02-23T14:16:23.375949Z

only guess I have. definitely weird, but if a restart fix it better not question it 😉

Jan Šuráň 2025-02-23T14:16:57.753789Z

If it happens again, I will try to look into it more deeply 👀