# EthernetServer server = EthernetServer(23);

**URL:** <https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529>\
**Category:** Programming\
**Created:** [May 7, 2016, 12:46pm UTC](https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529 "2016-05-07T12:46:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PA3040](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pa3040/32/216617_2.png) [@PA3040](https://forum.arduino.cc/u/PA3040)\
**Post date:** [May 7, 2016, 12:46pm UTC](https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529/1 "2016-05-07T12:46:44Z")

</div>

Dear All;

```cpp
EthernetServer server = EthernetServer(23);

```

It could be grate if some one can explain about port number in the above code "23"  
What does it mean?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [May 7, 2016, 12:51pm UTC](https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529/2 "2016-05-07T12:51:13Z")

</div>

That is the port the server will listen on. What exactly is your question?

> **[List of TCP and UDP port numbers](https://en.wikipedia.org/wiki/List_of_TCP_and_UDP_port_numbers)**
>
> This is a list of TCP and UDP port numbers used by protocols for operation of network applications.
> The Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) only need one port for duplex, bidirectional traffic. They usually use port numbers that match the services of the corresponding TCP or UDP implementation, if they exist.
> The Internet Assigned Numbers Authority (IANA) is responsible for maintaining the official assignments of port numbers for specific uses. However, man...

---

<div class="post-metadata">

**Author:** ![PA3040](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/pa3040/32/216617_2.png) [@PA3040](https://forum.arduino.cc/u/PA3040)\
**Post date:** [May 7, 2016, 1:44pm UTC](https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529/3 "2016-05-07T13:44:18Z")

</div>

Dear SurferTim Thanks for reply

```cpp
client.println("Content-Type: text/html");

```

Please advice the impotent of above code

---

<div class="post-metadata">

**Author:** ![SurferTim](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/surfertim/32/1072341_2.png) [@SurferTim](https://forum.arduino.cc/u/SurferTim)\
**Post date:** [May 7, 2016, 1:46pm UTC](https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529/4 "2016-05-07T13:46:09Z")

</div>

That would inform a client what type of doc is being returned. In that case, it would be a html doc, usually sent on port 80 (http) or port 443 (https).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 9:53pm UTC](https://forum.arduino.cc/t/ethernetserver-server-ethernetserver-23/384529/5 "2021-05-05T21:53:06Z")

</div>

Closed on May 5, 2021, 9:53pm UTC


