---
title: "cannot established socket"
url: "https://maker.wiznet.io/forum/13013"
markdown_url: "https://maker.wiznet.io/forum/13013/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "maor"
created: "2018-07-29T07:13:26+09:00"
last_activity: "2018-07-30T09:37:21+09:00"
language: "en"
views: 786
replies: 2
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# cannot established socket

## Question

Asked by maor on 2018-07-29 in Ethernet Chips.

hi,
i am trying to change the ip address of w5500 chip and the ip wont change. stays 192.128.64.0 every time i read it.
moreover i cannot established socket stuck in this command.
**while(getSn_SR(sn) != SOCK_ESTABLISHED){};**

i assume because of the ip ???
any suggestions

## Replies

### Reply 1 by maor, 2018-07-29

in addition i want to check the version of the chip via scope, this is look reasonable?

[![CLK%20MISO](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/8/8e34f4d33c09cf8c5ccc6796d0d54a76bd1d6495.JPG) CLK%20MISO1480×919 78.8 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/8/8e34f4d33c09cf8c5ccc6796d0d54a76bd1d6495.JPG)

don’t pay attention to the noise i am checking this problem

### Reply 2 by Eugeny, 2018-07-30

![](https://avatars.discourse-cdn.com/v4/letter/m/9de053/48.png) maor:

> i am trying to change the ip address of w5500 chip and the ip wont change. stays 192.128.64.0 every time i read it.

As you provide no details how you do it, I suspect you write to wrong registers when updating the IP address. I think you will need to reopen already open sockets to make the change effective, but I am not sure.

![](https://avatars.discourse-cdn.com/v4/letter/m/9de053/48.png) maor:

> while(getSn_SR(sn) != SOCK_ESTABLISHED){};

Do you have any idea what the status you get when it is stuck? Your code is flawed, socket may have many other states after you request it to connect.

![](https://avatars.discourse-cdn.com/v4/letter/m/9de053/48.png) maor:

> i assume because of the ip ???

Because you set something wrong in W5500 registers, or perform something wrong on the socket.

![](https://avatars.discourse-cdn.com/v4/letter/m/9de053/48.png) maor:

> any suggestions

Please refer to W5100 datasheet, it has very good explanation of managing sockets in chapter 5.

![](https://avatars.discourse-cdn.com/v4/letter/m/9de053/48.png) maor:

> this is look reasonable?

What is this? You did not provide signal names, what exactly you expect to see, and what we should check it against.

---

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