Fork me on GitHub
#cljsrn
<
2020-12-16
>
wei03:12:37

Hi there, thanks for making Krell! trying to troubleshoot my setup where the clj -m krell.main -co build.edn -c -r command is "Waiting for device connection on port 5001", and the app is loaded on my phone and saying "Waiting for Krell to load files". Any tips on where to look to troubleshoot? I'm using android on device and running everything from WSL2.

frankitox13:12:20

I don't know about Krell, but when using shadow-cljs in WSL2 I always have to do port forwarding. The device and Win communicate in a network A, while Win and Linux in a net B. Here's what I usually do in powershell (https://gist.github.com/frankitox/a669763db4862152627c54f5fe443c7d). Also when running shadow I have to specify the IP (https://gist.github.com/frankitox/06f0468fd4d9e294c49ca86b4febf843).

🙏 3
wei03:12:20

oh, I am seeing this error in metro bundler log, I've opened that port in the firewall and it seems to be accessible

[Tue Dec 15 2020 19:27:51.354]  LOG      An error occurred with client socket: failed to connect to /192.168.122.86 (port 5001) from /:: (port 41967): connect failed: ETIMEDOUT (Connection timed out)

Michaël Salihi10:12:52

How you configured your firewall for the port 5001? TCP or UDP?

wei19:12:03

tcp only, should it be udp?