Assume the port is 11234 (above 1024 so no admin privileges required) and that the host has ip 10.10.10.240
netserver -p 11234
netperf -H 10.10.10.240 -p 11234 -l 100
Get The ID of the process
ps aux |grep -v grep|grep "netserver -p"|awk '{print $2}'
use iperf3 instead