Block all incoming connections will prevent legitimate network connection , attempts including all forms of file sharing in OSX , remote access connections with SSH or SFTP & any other similar network service that allows for Mac network connections from trusted logins .
If certain features like file sharing is left turned on , but block all incoming connections with the firewall the Mac will still show up on network scans , but nobody would be able to connect to it .An article for it : macOS Sierra: Firewall pane of Security & Privacy System Preferences
Stealth mode : In firewall options , select to prevent the Mac from responding to probing requests that can be used to reveal its existence . The Mac still answers requests from authorised apps but unauthorised requests such as ICMP ( ping ) get no response .
An article for stealth mode : OS X Yosemite: Prevent others from discovering your Mac
For open ports , type network utility > select port scan > enter IP address to scan for open ports > click on scans you will notice it will start to scan , wait for a while if any ports are opened , it will show .You can stop port scanning .
An article for it : macOS Sierra: Check for open TCP ports