cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Server with Multiple Ports

TBen .1
Associate

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?

1 REPLY 1
Piranha
Chief II

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

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