Sorry as I'm not following as you seem to contradict your goal as in the OP, you stated.
Then you said:
So what is your goal? Are you trying to run the WebGUI? The remote control daemon? Are you trying to share that via the internet or only contain it locally?
If you remove the parameters and just state what the goal is, I can help out with the right flags/parameters.
Ah, I see as I didn't even realize that was an option.
You'd have to make your remote control daemon available on the internet.
That only runs it locally by default and nothing but your local machine can connect to that.
You need to adjust this:
--rc-addr - useful if you are running rclone on a headless machine, specify the private/public IP of your VM for rclone to bind to. (Optional)
That's either your 0.0.0.0 or whatever IP you want to bind it to and you need to ensure the port is open/available via your router/internet and forwarded properly.
I added to server B gave me nothing. I got an error ( Error at the top of this post ) when trying to login to hosted. So what code should I give to server B so that I can log in to the hosted and using web gui as if it were on server B
The problem lies with the self hosted version as that hosted version never makes a connection to the machine.
I didn't know it existed as a thing so not sure if it ever worked / just broke or whatnot.
--rc-allow-origin works just fine as that's not the issue.
Short term, either run the GUI yourself or not.
I tested running from a different machine and no issues locally.
I did something broad:
^Cfelix@gemini:~$ rclone rcd --rc-user=abc --rc-pass=abcd --rc-allow-origin=* --rc-addr :5572
2022/08/10 12:40:07 NOTICE: Serving remote control on http://0.0.0.0:5572/
2022/08/10 12:44:50 NOTICE: Warning: Allow origin set to *. This can cause serious security problems.