im searching of a way to accept connections for a telnet port only from a given ip adress. How is this possible? My tcl code bellow, now i want that only from a specified ip that connection could be established or drop it imediate if is not from that ip.
listen 12345 script conngrab
proc conngrab {newidx} {
control $newidx connmsg
}