I'm developing a messaging system in Delphi. I'm using TcpClient(Sockets) and TcpServer(Sockets) IPv4 on a LAN and DHCP server through a modem.
This means all computers with get example 196.168.0........ IP addresses. One of these computers will be the sever in my case. Whats a way to identify my special server as most modems support 254 computers (is that correct).
With nonblocking (Sockets) transferring streams how do I at the sever do I manage/Identify a stream with who sent it.
what are preferred ports that people should use, as email, HTTP, FTP, SQL ports should be avoided, so I want to use a port that is uncommonly used to remove conflicts. I have not done this before and cannot find ideal code.