Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By treii28
#54150 Wait, maybe I found it - I didn't notice it going through the vnc connection. I missed the lines:

Code: Select allWiFi.softAPConfig(apIP, apIP, IPAddress(255, 255, 255, 0));


in the setup, and

Code: Select all  dnsServer.processNextRequest();


In the loop. (the latter was scrolled below the window) However, adding those seems to give me the ability to access the main site at the specified IP address but putting in other addresses seems to come back now with 'This site can't be reached' - the scrolling text is no longer being displayed.
User avatar
By treii28
#54151 OK, I see the problem. The browser in the tablet is setting some urls to https whether I specify http or not (such as the home page for google and anything that triggers chrome to search google)

So I'm assuming what I need is a responder on port 443. Before I cludge into trying to hack something in there, do I need to set up a second webServer on that port to handle those or is there a quick and easy way to tell anything calling on the https port to go to 80 instead?

EDIT: Or will it even let me? I see that browsers generally don't accept redirects on 443 which makes sense, and I only see client code for SSL/TLS. Is it possible to do even a basic landing page response on 443 that would include a link to the main page?

EDIT 2:
OK, I tried a second web server responding with only notFound and "/" requests both going to a redirect and no juice. I figured this might be the case. So any other suggestions - if any even exist - to try to either redirect users trying to use https to http or to even spit out a bare bones text/link that says 'try http://something.net instead' or anything similar would be greatly appreciated.
My goal here is to make accessing the landing page on this thing as brain-dead as possible so the minimum instructions are necessary for random club members to access it. (I'm trying to set up a virtual geocache for a private recreation club on private property)
User avatar
By treii28
#54164
bbx10node wrote:I do not know how to redirect https without having TLS server support.


Yeah, I figured as much. Oh well. I'll just have to leave instructions with anyone trying to find the thing to make sure it's http. Either that or see if I can look into forcing a pop-up to the portal page somehow. Thanks for getting me to look at the code again. At least I have the http side working now.