Sorry, when I said I should have said , you can use the IP_address or name of the device (if it's in DNS/resolved by name).
nmap can scan an entire network. The syntax for you would be nmap -p 22,23 172.22.34.0/23 Note, it will not scan the broadcast address of the network. That's why I suggested setting your network address to say 172.22.34.254/21. Don't worry about a gateway. Run nmap -p 22,23,80 172.22.32.0/21 and wait. you will scan for sshd, telnetd, and httpd from 172.22.32.1 - 172.22.63.255... IIRC; it's at least beyond 172.22.35.255 which is what you want. You want 172.22.35.255 to be a host address on the network.