Know if http request is via AP or Wifi

metered
Posts: 9
Joined: Mon May 06, 2019 1:29 am

Know if http request is via AP or Wifi

Postby metered » Wed May 15, 2019 9:07 pm

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

metered
Posts: 9
Joined: Mon May 06, 2019 1:29 am

Re: Know if http request is via AP or Wifi

Postby metered » Wed May 15, 2019 11:31 pm

Used req->getHeader("Host"); and now feel embarrassed lol

Who is online

Users browsing this forum: No registered users and 68 guests