---
title: "How does changing the IP address affect open sockets?"
url: "https://maker.wiznet.io/forum/14756"
markdown_url: "https://maker.wiznet.io/forum/14756/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "BiffoBear"
created: "2022-12-24T04:43:32+09:00"
last_activity: "2022-12-24T08:54:06+09:00"
language: "en"
views: 314
replies: 2
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# How does changing the IP address affect open sockets?

## Question

Asked by BiffoBear on 2022-12-24 in Ethernet Chips.

Hi,

I’m updating an implementation of sockets for the W5500 and W5100 chips. Currently when `socket.bind()` is called it updates the IP address in `SIPR0 - SIPR3` in the common register block. How will this affect other, open sockets?

Thanks!

## Replies

### Reply 1 by Eugeny, 2022-12-24

According to the W5100 datasheet (chapter 5.1) setting SIPR is a part of the chip initialization procedure. Designers, most probably, did not assume and consider that SIPR will be changed on the fly. And we are left with guesses: if sockets do not have copy of the SIPR, then open sockets will have new packets flying using new IP address, if they have the copy then probably communication will complete properly until socket is closed.

### Reply 2 by BiffoBear, 2022-12-24 (in reply to reply 1)

Thanks Eugeny. I’ll force bind to use the initial IP address and not the IP address it’s called with.

---

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