Page 1 of 1

Know if http request is via AP or Wifi

Posted: Wed May 15, 2019 9:07 pm
by metered
Hi,

How do you tell if the request came via the Access Point (192.168.4.1) or via the Wifi (192.168.1.*).

i.e. so can send a meta timed redirect (after reboot) to the right address



***
In addition, but either way (wifi.h)... Also using following server library
https://techtutorialsx.com/2019/04/07/e ... eb-server/


Many thanks

Re: Know if http request is via AP or Wifi

Posted: Wed May 15, 2019 11:31 pm
by metered
Used req->getHeader("Host"); and now feel embarrassed lol