Skip to main content
Visitor II
September 14, 2022
Question

TCP Server with Multiple Ports

  • September 14, 2022
  • 1 reply
  • 1286 views

Hello,

How can I configure a multiple clients (pc and sensor) to a TCP server (the sttm board)?

I define the stmf4 board to server with the library lwip and client for pc.

I opened a socket configured IP and port of PC only and the connection worked (between the server and the client).

And now I want to add another client (the sensor), how can I configure the sensor (client), I need to define only a new port or define a new IP & port?

    This topic has been closed for replies.

    1 reply

    Graduate II
    September 14, 2022

    Learn the basics of TCP/IP networking and look at examples:

    https://github.com/lwip-tcpip/lwip/tree/master/contrib/apps