Does w5500 support multiple connection on same port?
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Does w5500 support multiple connection on same port?
by jameskim ·
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.
RE: RE: Does w5500 support multiple connection on same port?
by bahman roshan ·
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
RE: Does w5500 support multiple connection on same port?
by kw123 ·
[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?
RE: Does w5500 support multiple connection on same port?
by jameskim ·
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.
RE: Does w5500 support multiple connection on same port?
by bahman roshan ·
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 ?