Updated README.md to clarify WSL port forwarding#37
Open
gignsky wants to merge 4 commits intoActivityWatch:masterfrom
Open
Updated README.md to clarify WSL port forwarding#37gignsky wants to merge 4 commits intoActivityWatch:masterfrom
gignsky wants to merge 4 commits intoActivityWatch:masterfrom
Conversation
Author
|
Note: I added an additional commit removing the specification that, for the permanent solution, one should use their WSL IP address in the connectaddress section of the netsh command because binding it to that IP address will cause aw-server to be unable to start due to the port already being bound. If connectaddress=* the issue seems to be resolved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ref. #21 #18 #17 #9
I recently installed activity watcher on my windows machine and ran into issues regarding port forwarding when running vscode inside WSL, it turns out that the plugin for vscode was trying to connect to port 5600 on WSL's subnet but not the local subnet of the windows machine running activity watch.
This can be resolved by manually forwarding the port inside each project or by running a shell command to permantly forward the port on WSL's end. I added both solutions to the README.md file in order to save others the trouble of having to figureo out what was going on and why activity watch had no idea that vscode inside WSL was not reporting any data.
I did not look into how to modify the extension itself to auto-forward these ports but other extensions I have are able to do this so I am sure it's possible, just above my level of knowledge.
Thank you for all the work everyone has done in the creation of this extension, I hope my small documentation contribution will prove helpful to others.