AntonyCorbett / OnlyT

Meeting Timer
MIT License
113 stars 46 forks source link

OnlyT Remote and Windows 10 (Home) #154

Closed AlexandrePRUVOT closed 6 years ago

AlexandrePRUVOT commented 6 years ago

Hello Antony, OnlyM is awesome. OnlyV is awesome. OnlyT is awesome. So thank you very much. And thanks for the French translation of OnlyT. I could not run OnlyT Remote on a Samsung Tablet (Android). I tried on two computers running Windows 10 Home with an administrator account. I searched for several days. I started by allowing data sharing and discovery of the network on the private network (I think it is necessary). And finally, I managed by running OnlyT as an administrator (while my account already has an administrator profile ...). At that moment, I was able to see OnlyT PC's timers on my tablet. It works with my two computers (Kingdom Hall and House). This looks like problem # 51. Best regard. Alexandre

AntonyCorbett commented 6 years ago

Hi Alexandre. Thanks for your kind words. My comment on #51 should apply here. https://github.com/AntonyCorbett/OnlyT/issues/51#issuecomment-357587306 In a standard Windows installation, Elevation is only required to open the port.

AlexandrePRUVOT commented 6 years ago

Hello Antony, The port was opened easily without executing OnlyT as an administrator (but the profile was already as administrator). When I remove "run as administrator", the tablet does not see the timer of the PC. When I put "run as administrator", the tablet sees the timer of the PC.

Note: In "Run as Administrator" mode, I receive the following message: "Do you want to allow the following program from an unknown publisher to make changes to this computer? " (But I know how to make it disappear: I go to Control Panel / Accounts and User Protection / User Accounts / Change User Account Control Settings / Never Notify Me!)

Finally, this is not a bug because OnlyT works but, by dint of tearing my hair for a week, I became bald ;-)

Does this mean that the installation with Windows 10 Home is not a standard installation of Windows?

In any case, thank you. The brothers of our three congregations are starting to appreciate your very nice tools. Cordially. Alexandre onlyt_modif .

TizianoNoto commented 6 years ago

The port was opened easily without executing OnlyT as an administrator (but the profile was already as administrator).

Hi @AlexandrePRUVOT , did Windows pop out the same message you receive when choosing "run as administrator" after pressing the "Open port" button? (I strongly discourage to disable User Account Control!)

AlexandrePRUVOT commented 6 years ago

Hello, This morning, I did some tests before leaving. I enabled windows notifications. Note: I am already administrator by default. With my account, I can install or uninstall programs. My children with their user accounts can not. And in the present case, I do not use the real administrator account (the super administrator, the one hidden by default). So when I run Only T as administrator, I have a first "Unknown Publisher" notification. Then when I start opening port 8096, no notification. My tablet sees the timer of the PC. So when I'm not running Only T as administrator, I do not have notification when I open OnlyT. But when I start opening port 8096, I have an "Unknown Publisher" notification. There, my tablet does not see the timer of the PC. Opening port 8096 in the firewall has never been a problem. The administrator's permission for this makes sense. Best regard. Alexandre firewall

TizianoNoto commented 6 years ago

Please try opening OnlyT without choosing "as administrator". Go to Settings. Click Open port. You should see a notification from Windows about "OnlyTFirewallPorts.exe". Enter administrator password (if required) then Yes. Now both firewall rule and HTTP reservation (this can also be done with NETSH in command prompt) should be set for the TCP port.

It looks like you have some duplicate firewall rule for OnlyT, I recommend some cleanup.

AlexandrePRUVOT commented 6 years ago

Hello, The problem of the multiplication of the opening of the ports in the firewall is solved since version 1.1.044 (from this morning). Issue #158. I just did the tests with this version. However, I always have to run OnlyT as administrator.

The tablet only sees the timer of the PC if I run Only as administrator. Else screenshot_tablette

On the other hand, I do not know how to check the HTTP reservation (it goes far beyond my skills). netshconfigip

Best regard. Alexander

AntonyCorbett commented 6 years ago

@AlexandrePRUVOT It could be that the url reservation was made for the admin account. Can I suggest you try another port? Load OnlyT (not elevated). Change port to another one of the values, e.g. 8097 and Open. You'll need to change the port in the remote client too.

TizianoNoto commented 6 years ago

On the other hand, I do not know how to check the HTTP reservation (it goes far beyond my skills).

Open command prompt and type netsh http show urlacl

You should see this somewhere, probably one of the last entries:

URL prenotati           : http://*:8096/
    Utente: \Everyone
        In ascolto: Yes
        Delega: No
        SDDL: D:(A;;GX;;;WD)

Make sure User is Everyone and Listening set to Yes

AlexandrePRUVOT commented 6 years ago

Hello Antony and Tizano (is that your name?), I tried Antony's suggestion. And, it's the same thing. My tablet only sees the PC if I run OnlyT as administrator. As Tizano asked, I typed netsh http show urlacl in "command prompt". And, I did not find a URL with port 8096 or 8097 open. netsh2 Wow! This is a good track for investigation. Best regard. Alexandre

AntonyCorbett commented 6 years ago

@AlexandrePRUVOT Thanks - this is useful. As @TizianoNoto mentions OnlyT creates both a firewall rule and HTTP reservation. It looks like the reservation is failing. Please would you try to create it manually at an elevated command line? The command looks like this for port 8096 and a French OS:

netsh http add urlacl url=http://*:8096/ user="Tout le monde"

Kind regards Antony

AlexandrePRUVOT commented 6 years ago

Thank you @AntonyCorbett. I did as you asked me. The URL reservation is done. netsh3

And ... wonderful, it works well ! Thank you so much. Good night. Alexandre

TizianoNoto commented 6 years ago

How curious. In the italian edition of Windows "Everyone" must be used and I assumed this would apply for all languages.

AntonyCorbett commented 6 years ago

@AlexandrePRUVOT I can see the bug in OnlyT code - it omits the quotation marks that are required when the localised "Everyone" string contains spaces!