
public class Connection {

    private static int IDCounter = 0;
    public readonly int ID = IDCounter++;
    public string Address;
    public int Port;

    public Connection(string address, int port) {
        Address = address;
        Port = port;
    }
}