---
title: "W5500 server socket"
url: "https://maker.wiznet.io/forum/15648"
markdown_url: "https://maker.wiznet.io/forum/15648/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "JavorWM"
created: "2025-03-19T14:59:43+09:00"
last_activity: "2025-03-28T14:26:00+09:00"
language: "en"
tags: ["W5500"]
views: 6
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5500 server socket

## Question

Asked by JavorWM on 2025-03-19 in Ethernet Chips.

Let's say I have a server socket, for example 3. After server closes the socket connection using close(3), Sn_IR_DISCON is never called. How can this be handled?

## Replies

### Reply 1 by louis_m, 2025-03-28

Hi

setSn_CR(sn,Sn_CR_CLOSE); Have you tried closing the socket with this function?

If you're using socket3, I think you can put "3" for sn

---

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