Adds or removes local servers.
setipportmap -d action -n service_name -a server_address -p protocol -e external_port_num -i internal_port_num
setipportmap -d 1 -n stocksrv -a 205.15.3.22 -p 1 -e 12000 - i 2000
This command will add a new local server named stocksrv, which is located on the local computer 205.15.3.22. The server is accessible using the TCP port 12000, which gets mapped into TCP port 2000 on the server.