question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Questions about how to use the Windows version

See original GitHub issue

Hi there,

I’ve been using Grocy for Windows and it’s great so far, thanks 👍. I’m having some issues with reaching the Grocy interface over my internal network and setting the language, was hoping you could shed some light on the following:

  • I’m able to reach Grocy in a browser on the same machine that Grocy for Windows runs on (via e.g. http://localhost:$PORT_NUMBER). And I’ve allowed all ports on both incoming and outgoing UDP and TCP connections for the Grocy app in the Windows security center. Yet I’m not able to reach them from other machines on my local network, even though I’m serving several other webapps (e.g. Home Assistant and Plex) from the same machine without any issues. Could you give me some pointers in how to get this to work?
  • When Grocy for Windows starts, it allways overwrites the files in the settingoverrides folder. For instance it sets the CULTURE value to the language of the OS automatically. I’ve tried to overwrite it manually (my Windows is in Dutch but I want Grocy in Enlish) but each time when I restart Grocy, it overwrites it with the OS language again. Also it seems to randomize the port number in BASE_URL on start. Could you perhaps give some pointers how to be able to override both in a way that persists through restarts of the app?

Thanks so much, and kind regards!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
berrndcommented, Oct 17, 2019

This fits not completely for grocy-desktop, as also authentication is disabled, no built-in SSL, and so on…

However, it would be possible to expose the localhost-bound port via a reverse proxy or similar - also Windows has something like that built-in (portproxy) - so assumeing that there is no other php.exe running on your machine, the following little PowerShell script searches for the port of the currently running PHP server and exposes it on port 8080, accessible from everywhere:

# Define the exposed port
$exposedPort = 8080

# Search for the used port of grocy-desktop, resp. the one of the php.exe process
$grocyPhpServerPort = (Get-NetTCPConnection | Select LocalPort,@{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}} | Where Process -eq php).LocalPort

# Create the portproxy ($grocyPhpServerPort@localhost -> $exposedPort@AllInterfaces)
netsh interface portproxy add v4tov4 listenport=$exposedPort listenaddress=* connectport=$grocyPhpServerPort connectaddress=127.0.0.1

# Create a firewall rule to allow accessing $exposedPort from anywhere
netsh advfirewall firewall add rule name="grocy-desktop exposed" dir=in action=allow protocol=TCP localport=$exposedPort




# Delete the portproxy and the firewall rule
# netsh interface portproxy delete v4tov4 listenport=$exposedPort listenaddress=*
# netsh advfirewall firewall delete rule name="grocy-desktop exposed" dir=in protocol=TCP localport=$exposedPort

# Show all portproxies
# netsh interface portproxy show all

1reaction
berrndcommented, Oct 17, 2019

So this is about grocy-desktop, not a custom setup of grocy on Windows, right? I’ve moved this to grocy/grocy-desktop.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Windows 10: Frequently Asked Questions
This Windows 10 FAQ page answers any Windows 10 download and maintenance questions you ... If you're using an older version, such as...
Read more >
Frequently Asked Questions: Windows 10
I have multiple computers, do I have to download Windows 10 on each computer? You can download a .ISO file and upgrade each...
Read more >
Serviced versions of Windows 10: Frequently asked ...
For this reason, we strongly recommend that you update to the latest version of Windows 10. To update to the latest version of...
Read more >
32-bit and 64-bit Windows: Frequently asked questions
Get answers to some common questions about 32-bit and 64-bit versions of Windows.
Read more >
Introduction Windows Interview Questions and Answers
Part 1 – Windows Interview Questions (Basic) · 1. Explain the main purpose of an operating system? · 2. What Is the Purpose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found