[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Sharing TCP port
From: |
Indan Zupancic |
Subject: |
Re: [lwip-users] Sharing TCP port |
Date: |
Tue, 16 Mar 2021 16:45:50 +0100 |
User-agent: |
Roundcube Webmail/1.3.15 |
Hello Ali,
On 2021-03-16 16:26, Danish Ali wrote:
But now I want to be able, at the same time, to have LWIP make
connections _from_ its TCP port 5060 _to_ other, different and
currently unconnected, remote devices.
Why do you need to use the same local port number?
Why can't you just use a random free port for outgoing connections?
That is how the rest of the world does it.
Is this something that should be possible?
Within the TCP standard the only limitation is that each
local IP + local port + remote IP + remote port combination
is unique.
But I doubt lwIP had in mind anyone wanting to share a listen
port with TCP outgoing connecting sockets on the same port.
It may or may not work by accident, but you may need to tweak
some checks in lwIP's code before it works.
But again: Why?!
Greetings,
Indan