How does changing the IP address affect open sockets?
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: How does changing the IP address affect open sockets?
by Eugeny ·
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.
RE: RE: How does changing the IP address affect open sockets?
by BiffoBear ·
Thanks Eugeny. I’ll force bind to use the initial IP address and not the IP address it’s called with.