I have a QNX client with an IP Address of “”. I need to
communicate to a server with an address of “” through a
gateway of “”. My software uses the connect socket
function to connect to the server. How do I configure my system so that
whenever I send something on the socket it will use the gateway. It was
suggested in a previous posting to use the route command as follows:

route add default X.X.X.X where X.X.X.X is the IP address of the

Where do I actually use the route command. Is it in the hosts file?

Thank You.

Dan Szymanski

/etc/netstart typically contains the commands to start/config TCP/IP
services. I would place the route command just after the ifconfig line(s).

  • Richard