netcat inherits the stdin descriptor. Redirect it from somewhere else instead, such as:
nc <server_ip> 1234 < /dev/null
netcat unfortunately closes the connection when it reaches end-of-input, so if you want the connection to remain open, you could use the -d
flag.
nc -d <server_ip> 1234 < /dev/null