B4J Question Identify TCP Client Port / Write to specific Client Port

Declan

Well-Known Member
Licensed User
Longtime User
I have written a simple jNetwork server to handle TCP clients.
If I have a number of Clients connected, I need to be able to Write to a specific Client's IP and Port.
I have looked at:
This is mentioned:
Each connection is identified by <server port, client ip address, client port>.
I am able to obtain the Client IP address with "RemoteAddress", but not the Client Port.

How do I obtain the Client Port?
How do I Write to a specific Client?
In VB6, I would "server.Send(host, message)" where host is the Client IP & Port
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top