none
Web server on a WEC2013 device with multiple NIC:s RRS feed

  • Question

  • Hi,

    Without having studied the private code for the http server in depth, I was wondering if here is a standard/preferred way of running a WEC web server on a device that have multiple NIC:s (BTPAN, RNDIS, WLAN) and nedd to handle requests on all of these. Much like being able to configure a network router either over WiFi or Ethernet. The difference being that these network interfaces have different IP addresses (local and externally DHCP assigned depending on medium). 

    I can only contact the "default web page" via LAN/KITL (DEBUG) out of the box after setting SYSGEN_HTTPD=1.

    Do I need to configure one web server (per network interface under the registry key: HKEY_LOCAL_MACHINE\COMM\HTTPD\Websites to gain access over more mediums?

    For (web server) development purposes I would initially be happy to enable to http activity over RNDIS.

     


    /Robert

    Friday, November 3, 2017 3:43 PM

All replies

  • Robert

    Is it possible that your device has firewall rules that are blocking port 80?  See https://msdn.microsoft.com/en-us/library/ee494503(v=winembedded.60).aspx


    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys


    Friday, November 3, 2017 4:38 PM
    Moderator
  • Thanks for your reply Bruce and I'd also would like take the opportunity to thank you for the numerous tips I've gotten from reading your excellent blog over the years.

    Anyway, I haven't yet enabled the firewall service in the device/instrument. So that shouldn't be a problem...right?

    Apart from using our own propriety protocol we do use Telnet over TCP/IP and have no problem with any adapter. I can see in the debug build that the web server receives and, from what I can tell, acts upon adapter/IP events.  I only see one initial IOCTL_SERVICE_CONNECTION event, in the telnet server case new telnet request (via any existing adapter) is received a new connection thread is spawned -> TEL1:, TEL2: etc. I would expect something similar to happen in this case.

    Any suggestions  are greatly appreciated.

     


    /Robert

    Monday, November 6, 2017 9:01 AM
  • Robert

    I don't think there is any reason that an HTTP request to the device over any transport wouldn't make it to the HTTP server.  Therefore, it is my belief that something is blocking the request, either externally or internally.

    So, instead of asking me if firewall is a problem, you would be better served by checking the registry settings on the device.  You are probably not the only person who has added code and config to your project, your suppliers may have also.


    Bruce Eitman
    Senior Engineer
    Bruce.Eitman AT Synopsys DOT com
    My BLOG http://geekswithblogs.net/bruceeitman
    I work for Synopsys

    Tuesday, November 7, 2017 1:57 PM
    Moderator