Jump to content

F@H Browser Control Access from another computer

Go to solution Solved by Tad Bittoomuch,

Solution from Page 121 of the LTT Covid-19 Emergency Response Megathread

On 3/23/2020 at 1:30 AM, CWP said:

The web interface uses a separate tag <web-allow v='(ip ranges)' />. The <allow> tag is for the advanced control only.

Thanks to CWP for providing this solution!


If anyone is wondering how to enable browser access (Web control) for a machine on your local network (not with the advanced client), you can either:

 

a) Edit your F@H config.xml file to include <web-allow v='(ip ranges)' />.

This is useful if you don't have a screen attached to your F@H computer and are able to SSH into it to edit /etc/fahclient/config.xml.

For example, this section of my config reads:

<config>

	-stuff-

	<!-- Web Server -->
	<web-allow v='127.0.0.1 192.168.1.0/24'/>
    
    	-more stuff-
    
</config>

Meaning it will allow web access from localhost (127.0.0.1) as well as any other machine on your local network, assuming your DHCP range is 192.168.1.0/24.

If yours is something different, i.e. 192.168.0.x or 10.0.2.x then you'd replace it with 192.168.0.0/24 or 10.0.2.0/24.  Replacing the x with 0/24 is like shorthand for representing the entire DHCP scope, i.e. 192.168.1.0 - 192.168.1.255.

Alternatively if you only want a single machine on your local network to be able to access the browser control, then you can put single IP addresses in there, separated by spaces.

For example if you wanted only the IP addresses 192.168.1.188 and 192.168.1.62 (or whatever yours is) to be able to access the browser control, your config would look like this:

<config>

	-other stuff-

	<!-- Web Server -->
	<web-allow v='127.0.0.1 192.168.1.188 192.168.1.62'/>
    
    	-other more different stuff-
    
</config>

 

b) Using the Advanced Control GUI on the F@H machine.

This is easier than having to dig through Windows to find the config.xml file for F@H.  Open the 'Expert' tab in the 'Configure' menu and add the following, obviously making sure the DHCP scope matches your local network.

image.png.9c42082023d03d0621e3462d6ef66c54.png

 

Click save and pause all active work units, then either restart your computer or F@H to reload the new config.

 

When you're done, you should be able to go to any computer on your local network (or the ones you specifically specified) and enter http://local_ip_of_F@H_computer:7396.

Replace local_ip_of_F@H_computer with the IP address of your F@H computer - for example mine is http://192.168.1.101:7396.

Hi everyone,

 

I'm currently trying to access a F@H computer on my local network using the web control, but I keep getting the error '401 Unauthorised'.

 

I've followed the steps in this guide and restarted the computer and client many times.

For reference:

  • 192.168.1.101 (F@H Computer)
  • 192.168.1.193 (Computer I'm trying to access the web control with)

 

Local configuration:

image.thumb.png.8c1d5935154bec5806d4bb6014e32c7c.png

 

Browser error (different computer):

image.png.f98546b8049cb2d54746d492e75583a4.png

 

F@H Client log (local) (192.168.1.193 is the computer I'm trying to access the web control from)

image.png.5c58299ad4a4a523033925a1c0f94723.png

 

 

Has anyone else encountered this issue/what did you do to fix it, or is it just that in the two years since the guide was written F@H has removed this functionality?
 

Link to post
Share on other sites

10 minutes ago, Oshino Shinobu said:

Your configuration seems to show it set to port 36330 but you're trying to access it via port 7396. 

I'm only trying to access the browser control, which is port 7396.  I don't need the advanced control:
If for example I put 192.168.1.101:36330, chrome spits out ERR_INVALID_HTTP_RESPONSE.

 

On 11/3/2018 at 3:57 AM, Gorgon said:

The WebControl runs on TCP Port 7396
~snip~
In order to permit access to either the Web Control or using the Advanced client on another PC you have to allow access on the remote system.

 

This is essentially what I've done, and on the F@H computer if I type localhost:7396 into the browser it goes to the web control.
The problem I'm having is that despite having added my local network IP range into the IP address restriction in the advanced client configuration on the F@H computer, it still denies access to the web control from any other computer on the network

Link to post
Share on other sites

20 minutes ago, Tad Bittoomuch said:

I'm only trying to access the browser control, which is port 7396.  I don't need the advanced control:
If for example I put 192.168.1.101:36330, chrome spits out ERR_INVALID_HTTP_RESPONSE.

 

 

This is essentially what I've done, and on the F@H computer if I type localhost:7396 into the browser it goes to the web control.
The problem I'm having is that despite having added my local network IP range into the IP address restriction in the advanced client configuration on the F@H computer, it still denies access to the web control from any other computer on the network

You have to restart the Folding Client for it to reload the config. On Windows systems a reboot may be required. In some instances if your Windows Firewall is confused and your home network is in some zone other than home it will cause issues.

6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670e WiFi; Ryzen 9 7950x; EVGA 240 CLC; 2 x 48GB DDR5-6000; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; MSI RTX 4070 ti Super; AMD FirePro W4100; Corsair SFF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Pop Silent XL; Gigabyte Aorus z570 Master; Ryzen 9 3950x; AMD Wraith; 2 x 16GB DDR4-3200; 256GB NVMe; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Gaming X; Corsair RM750e

dcn04: Fractal Define S; Gigabyte Aorus ax570 Master; Ryzen 9 5950x; BeQuiet! PureRock 2; 2 x 16GB DDR4-3200; 250GB NVMe; ; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Ventus 2; Corsair TX750M

Link to post
Share on other sites

5 minutes ago, Gorgon said:

You have to restart the Folding Client for it to reload the config. On Windows systems a reboot may be required. In some instances if your Windows Firewall is confused and your home network is in some zone other than home it will cause issues.

I restarted the F@H computer and F@H client individually and set both the network locations to 'Home' however that didn't seem to do anything.

 

Do I need to allow anything specific in Windows Firewall Inbound/Outbound rules/Allowed applications?

e.g. Inbound/outbound rules:

image.png.fb9fd8f5f92eaf7be40ee48b88c16121.png

 

e.g. allowed applications:

image.png.4f0f09b3604be5664261625808a772ca.png

 

Link to post
Share on other sites

43 minutes ago, acewingman said:

Does it need a dash in the ip range?

I added the dash to explicitly specify the range, however it didn't do anything different.

image.png.6880d99c8ba611939d4dbd153deb0a26.png

 

The browser access still returns 401 unauthorised.

 

As a test I added a password but that still didn't work.

Link to post
Share on other sites

1 hour ago, Tad Bittoomuch said:

Console Log of config:

image.png.4430be64dc941830352bdd2c4848f816.png

 

The 192.168.1.0/24 address range is being saved, which is why this is inexplicable:

image.png.5c58299ad4a4a523033925a1c0f94723.png

That should work. Try disabling the windows firewall. I suspect this is what is screwing you over.

 

I don’t run Windows on any of my folding rigs but my Daily Driver is Windows 10.

 

I also use the Advanced Control Folding application installed on my monitoring system rather than the browser so you could try installing the FAHClient software without any slots configured then adding the remote system to see if that works but that will only tell you if TCP Port 33600 is open not 7396 used by the web client. Or a a quick test using a Telnet client that understands Unix (I.e. Not the one built into Windows) such as PuTTY one opening TCP port 33600 and typing “help”

 

The FAHClient Advanced Control is just basically a Python Wrapper around a telnet Client to give a pretty GUI

6 GPU Folding Rig  Linux Folding HOWTO Folding Remote Access Folding GPU Profiling ToU Scheduling UPS

Systems:

desktop: Lian-Li O11 Air Mini; Asus ProArt x670e WiFi; Ryzen 9 7950x; EVGA 240 CLC; 2 x 48GB DDR5-6000; 2 x Samsung 980 Pro 500GB PCIe3 NVMe; 2 x 8TB NAS; MSI RTX 4070 ti Super; AMD FirePro W4100; Corsair SFF750

nas1: Fractal Node 804; SuperMicro X10sl7-f; Xeon e3-1231v3; 4 x 8GB DDR3-1666 ECC; 2 x 250GB Samsung EVO Pro SSD; 7 x 4TB Seagate NAS; Corsair HX650i

nas2: Synology DS-123j; 2 x 6TB WD Red Plus NAS

nas3: Synology DS-224+; 2 x 12TB Seagate NAS

dcn01: Fractal Pop Silent XL; Gigabyte Aorus z570 Master; Ryzen 9 3950x; AMD Wraith; 2 x 16GB DDR4-3200; 256GB NVMe; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Gaming X; Corsair RM750e

dcn04: Fractal Define S; Gigabyte Aorus ax570 Master; Ryzen 9 5950x; BeQuiet! PureRock 2; 2 x 16GB DDR4-3200; 250GB NVMe; ; Gigabyte Gaming RTX 4080 Super; MSI 4070 Ti Super Ventus 2; Corsair TX750M

Link to post
Share on other sites

Solution from Page 121 of the LTT Covid-19 Emergency Response Megathread

On 3/23/2020 at 1:30 AM, CWP said:

The web interface uses a separate tag <web-allow v='(ip ranges)' />. The <allow> tag is for the advanced control only.

Thanks to CWP for providing this solution!


If anyone is wondering how to enable browser access (Web control) for a machine on your local network (not with the advanced client), you can either:

 

a) Edit your F@H config.xml file to include <web-allow v='(ip ranges)' />.

This is useful if you don't have a screen attached to your F@H computer and are able to SSH into it to edit /etc/fahclient/config.xml.

For example, this section of my config reads:

<config>

	-stuff-

	<!-- Web Server -->
	<web-allow v='127.0.0.1 192.168.1.0/24'/>
    
    	-more stuff-
    
</config>

Meaning it will allow web access from localhost (127.0.0.1) as well as any other machine on your local network, assuming your DHCP range is 192.168.1.0/24.

If yours is something different, i.e. 192.168.0.x or 10.0.2.x then you'd replace it with 192.168.0.0/24 or 10.0.2.0/24.  Replacing the x with 0/24 is like shorthand for representing the entire DHCP scope, i.e. 192.168.1.0 - 192.168.1.255.

Alternatively if you only want a single machine on your local network to be able to access the browser control, then you can put single IP addresses in there, separated by spaces.

For example if you wanted only the IP addresses 192.168.1.188 and 192.168.1.62 (or whatever yours is) to be able to access the browser control, your config would look like this:

<config>

	-other stuff-

	<!-- Web Server -->
	<web-allow v='127.0.0.1 192.168.1.188 192.168.1.62'/>
    
    	-other more different stuff-
    
</config>

 

b) Using the Advanced Control GUI on the F@H machine.

This is easier than having to dig through Windows to find the config.xml file for F@H.  Open the 'Expert' tab in the 'Configure' menu and add the following, obviously making sure the DHCP scope matches your local network.

image.png.9c42082023d03d0621e3462d6ef66c54.png

 

Click save and pause all active work units, then either restart your computer or F@H to reload the new config.

 

When you're done, you should be able to go to any computer on your local network (or the ones you specifically specified) and enter http://local_ip_of_F@H_computer:7396.

Replace local_ip_of_F@H_computer with the IP address of your F@H computer - for example mine is http://192.168.1.101:7396.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×