# FreeRTOS webserver windows issue

**URL:** <https://forums.freertos.org/t/freertos-webserver-windows-issue/5848>\
**Category:** Kernel\
**Created:** [March 17, 2016, 9:31am UTC](https://forums.freertos.org/t/freertos-webserver-windows-issue/5848 "2016-03-17T09:31:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 17, 2016, 9:31am UTC](https://forums.freertos.org/t/freertos-webserver-windows-issue/5848/1 "2016-03-17T09:31:40Z")

</div>

**[paw3l](https://sourceforge.net/u/paw3l/)** wrote on [Thursday, March 17, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/0e937a9f/#e34f):

Hi All,

I have the FreeRTOS running on cortex, with webserver from freertos example. Everything works fine, Im able to display pages. But this is only when I run client browser on Linux machine. When I try to connect from Windows there is always a timeout. On windows I disabled the firewall, antivirus etc. but no luck. Also I have linux running on virtual machine, and this works as well. I’ve tried wget from windows (GNU build) and I am also able to pull a html file.  
Finally Wireshark claims that GET is sent… but on FreeRTOS webserver the rxStream is NULL and lBytes is 0 (for that request). Any ideas?

Thanks,  
Pawel

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [March 17, 2016, 1:14pm UTC](https://forums.freertos.org/t/freertos-webserver-windows-issue/5848/2 "2016-03-17T13:14:38Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, March 17, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/0e937a9f/#16dd):

Interesting - we have tried from Windows too. Which browser are you using?

It would be helpful if you could post your wireshark log as an attachment - filtered to show just the HTTP traffic to your target.

---

<div class="post-metadata">

**Author:** ![htibosch](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/htibosch/32/62_2.png) [@htibosch](https://forums.freertos.org/u/htibosch)\
**Post date:** [March 17, 2016, 5:14pm UTC](https://forums.freertos.org/t/freertos-webserver-windows-issue/5848/3 "2016-03-17T17:14:03Z")

</div>

**[heinbali01](https://sourceforge.net/u/heinbali01/)** wrote on [Thursday, March 17, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/0e937a9f/#8203):

A wget from your windows does work, while a Windows browser can not open the same embedded page? That sounds strange.

What value did you use for backlog in :

```auto
    static const struct xSERVER_CONFIG xServerConfiguration[] =
    {
        #if( mainCREATE_HTTP_SERVER == 1 )
                /* Allow for 12 simultaneous connections: */
                /* Server type, port number, backlog, root dir. */
                { eSERVER_HTTP, 80, 12, configHTTP_ROOT },
        #endif

```

?

> When I try to connect from Windows there is always a timeout.

Do you mean that you never get to see that page?

Yes please, attach a PCAP file showing the HTTP-session that gets a time-out.

You may want to filter on e.g

```
ip.addr==192.168.x.x && tcp.port==80

```

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [March 18, 2016, 9:14am UTC](https://forums.freertos.org/t/freertos-webserver-windows-issue/5848/4 "2016-03-18T09:14:27Z")

</div>

**[paw3l](https://sourceforge.net/u/paw3l/)** wrote on [Friday, March 18, 2016](https://sourceforge.net/p/freertos/discussion/382005/thread/0e937a9f/#c3ad):

Seems like I’ve found the problem. Since we are low on ram I’ve minimized the MTU and WIN\_SEG sizes, and this affected working with windows. The GET from windows has more info from browser, and from linux its smaller. Therefor the linux version was just fine. I will bring back the default server sizes (cleaning up other parts of code), and let you know if all is good.
