1

! Rant

Recently received my ESP8266 and for bad or for worse quickly flashed it to use thingsSDK and espruino.

I have setup a webserver on it but at the moment you need to go to its local ip to see the page, does any one have tryed this before and overcome to redirect all requests to that page? Any ideas are welcome, i know this can be done easly with LUA but cant code LUA, yet...

Comments
  • 1
    What's wrong with having to go to its ip to see the Web page? That's how webservers work
  • 1
    @ScribeOfGoD no nothing wrong with that, i just wanted to redirect any request to that page, to be easier for user to go to the right page
  • 1
    @skytsunami you do that in your computers host file. Like...

    127.0.0.7 google.com

    Would redirect all requests from that computer to google.com

    You could also use a domain name, point the dns to your home ip then forward the port in your router to that computer
  • 0
    ESP8266 😘
  • 0
    @ScribeOfGoD i wanted that process to be dobe on the ESP8266 capturing any address you type in has this type of things built in using LUA...

    Ex:
    dnsServer.start(DNS_PORT, "*", apIP) ;

    I was wondering if there is anything like this using the Espruino codebase.
  • 1
    This is a NodeMCU, isn't it?
  • 0
    @Skayo yes it is 😀😁😊
  • 0
    So you want a redirect? Linux OS?
  • 1
    @drRoss
    I do not really understand what OP want to achieve
  • 1
    @Linux I'm not too sure either. His original post makes it sound like he wants all requests to the internet on a network to go to that web server..?
  • 1
    @drRoss
    But that is to stupid
  • 1
  • 0
    @drRoss @Linux I gave them the way they made it sound. If that's not what they're talking about then I'm not to sure what they want :/
Add Comment