-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests not going through for some reason #10
Comments
I just tried v2 locally and it still works for me, so I guess the proxy functionality itself should still be fine. Check the You did not change the hosts file yourself, correct? (you're not supposed to, somebody had a problem related to that once) |
Weird enough, bassically looks same way it does without app. Checked with Ubisoft connect chat. Hosts file untouched. Seems like problem on my side but I don't know where it could be exactly... |
If you access these links manually, does the request counter increase? Which browser are you using to test? To get accurate results for a TLS 1.2 check you must use Internet Explorer, as the other browsers afaik bring their completely own HTTP libraries. Win7fix started as admin? (as it needs to change the hosts file) Check the hosts file while the win7fix is running, is there an entry for the channel service? |
Yes,
Weird, checked with Chrome and Internet Explorer, they don't increase counter. Checked with Brave and it did. |
Really strange. I additionally disabled all earlier versions, TLS 1.0, 1.1 and SSL too, but theoretically it should work even if you do none of that, not even activate TLS 1.2. If you ping channel-service.upc.ubi.com while the app is running, do you see 127.0.0.1? What does Internet Explorer/Chrome/Brave each show? Are you using Java 8? |
Alright, I changed that right now.
No, in my case it's 54.147.167.217
I have Java 8 and Java 16. Few other programs I have use Java 8 unless I'll make them target Java 16 explicitly so I assume this app uses 8 aswell.
Internet Explorer with: can't display page Google Chrome with: Connection not secure. And I can't proceed further. NET::ERR_CERT_COMMON_NAME_INVALID Brave with: Connection is not private. And I can't proceed further. Interestingly enough before I disabled SSL and older TLS I could. NET::ERR_CERT_COMMON_NAME_INVALID. Interestingly enough before I disabled SSL and older TLS I could. |
Tryed to upgrade IE to IE 11. If I disable everything except tls 1.2 it asks to enable it all again. In other case it's still can't display page. Counter still 0. |
The ping should go to 127.0.0.1 while the app is running. Otherwise there seems to be something wrong with the hosts file entry - maybe the file is corrupted due to an earlier editing in it or encoding mistake? Please try what happens when you manually add the entry to the hosts file without the app active and access https://channel-service.upc.ubi.com/ in the browser. It should show a "page not found" (not even 404!) instead of "Can't display page" or something else. Also keep in mind that you absolutely need to have the browsers/Ubisoft Connect closed before starting the app, as they will otherwise remember the IP address for https://channel-service.upc.ubi.com/ and will not correctly use the redirect defined in the hosts file. The Java version should not even make a difference in this case, but I haven't tested Java 16 yet. Pretty sure it's using Java 8 if that's what most programs use by default. Internet Explorer with the app should display a 404 page, as it can now access the server, but the server has no content for it. Other browsers, that don't use the OS HTTPS libraries should show the content without the app. That seems to work as expected for you when not using the app. When using the app, Internet Explorer and Ubisoft Connect just accept the self-signed certificate, but the other browsers will complain, as the certificate is self-signed, which does not actually guarantee any security - correct, as we are deliberately tricking the Win7 HTTPS library with a man-in-the-middle attack. However, the message we would expect is something like in Firefox: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT, not something related to the domain name being invalid. Can you give a screenshot of the certificate when the app is running in Chrome or Brave please? |
Notepad shows that encoding is UTF-8. I edited it very long time ago but restored backup after that, now it's basically clean except default # comments. Hmm.. I'll try to experiment with it later additionally, feels like hosts file ignored for some reason.
Without app Chrome and Brave gave ERR_CONNECTION_REFUSED error, IE as before can't display page for some reason, I wonder why.
Yep, that exactly how I do it.
Without app yes. With app no.
Understood. I don't have firefox installed right now, but I will try that tomorrow just to check that.
Yes, of course. Any specific fields you need? |
Thanks for all the info so far! I'm really interested in solving this - for some reason with networking stuff there are always some machines that behave strangely. After thinking about it for a while, this seems to be the most likely cause:
Maybe the TLS 1.2 enabling thing failed somehow? Can you visit other websites with IE? Other stuff:
It could be that, for whatever reason, the hosts file is not immediately read once the program updates it, but is updated when you manually edit it.
ERR_CONNECTION_REFUSED when the entry is manually added sounds good, it means that the requests to the domain name are correctly forwarded to the local PC on which no server is running, so no connection. Please check pinging You can also test manually editing the hosts file and adding a second entry to it (above the automatically added one) AFTER the app is green, but before starting Ubisoft Connect. Then do a ping check. Then try Ubisoft Connect. You would need to remove that entry again next time before starting the app, as it would otherwise be impossible for Java to find out which server to actually contact and forward the requests to. (duplicate entries in the hosts file should be fine)
You can, but it shouldn't be necessary. If you click "Advanced" in the warning page that Chrome/Brave display, it warns you similarly to this, right? https://www.ionos.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2020/error-message-err-cert-common-name-invalid-in-google-chrome.jpg That seems normal, the browsers are doing the right thing.
The certificate seems fine. |
I did as instruction stated, the app shows ready, after that I start ubisoft connect, but it works same way as before, chat doesn't work and number of requests is 0. What it could be?
The text was updated successfully, but these errors were encountered: