The problem isn't nmap related, it's the firewall/proxy that's in the way..

You need to read up on how nmap works, you might want to start with basic TCP/IP...