---
title: "Does w5500 support multiple connection on same port?"
url: "https://maker.wiznet.io/forum/10467"
markdown_url: "https://maker.wiznet.io/forum/10467/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "kw123"
created: "2014-08-24T15:37:36+09:00"
last_activity: "2024-06-28T14:20:00+09:00"
language: "en"
views: 3590
replies: 5
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# Does w5500 support multiple connection on same port?

## Question

Asked by kw123 on 2014-08-24 in Ethernet Chips.

W5500 as server.

Listen to the particular socket port like “502”.

My question is:

Does w5500 support multiple client (their IP addr is different) connection on the port “502”,if yes, what’s the limit connection?

## Replies

### Reply 1 by jameskim, 2014-08-24

Hello kw123,

Yes, W5500 supports multiple connection with the same port number.
And the number of connection depends on how many sockets are listening by your setting.
If only Socket 0 is listening with port number 502, only one client can connect to W5500.
But if you make two sockets listen with port number 502, those two sockets can accept the connection request from two different clients.

As W5500 has 8 independent sockets, it can support to up to 8 clients.

Thank you.

James.

### Reply 2 by kw123, 2014-08-25

[quote=“javakys”]Hello kw123,

Yes, W5500 supports multiple connection with the same port number.
And the number of connection depends on how many sockets are listening by your setting.
If only Socket 0 is listening with port number 502, only one client can connect to W5500.
But if you make two sockets listen with port number 502, those two sockets can accept the connection request from two different clients.

As W5500 has 8 independent sockets, it can support to up to 8 clients.

Thank you.

James.[/quote]

I understand what you said.
But my question is:
if w5500 as a server and only open one socket,and only listen to this port (502),
assuming that there is a client already have connected with w5500 on the port 502,then another client which the IP is different send a connection request to w5500(on the port 502 too),will this be accept by w5500?

if yes,what’s the limitation?

### Reply 3 by jameskim, 2014-08-25

I’m sorry to say that it is impossible for another client to connect to.
The socket handling mechanism is different between WIZnet Wxxx series chip and software TCP/IP protocol.
If you want multiple connections, you should make multiple sockets listen in advance.

Thank you.

James.

### Reply 4 by bahman roshan, 2024-06-28 (in reply to reply 1)

Dear james,
Thank for your info about wiznet w5500.
I have a question
I have 10 client sensor based on w5500
And one display ethernet board based on w5500.
What is your recommendation for read the client sensor and show it on server w5500

### Reply 5 by bahman roshan, 2024-06-28

When we cearte socket i declare a special port .
Do i set several port for client and several listen close from that . Or there is better way ?

---

Source: https://maker.wiznet.io/forum/10467
