开发者

Mac: How to see list of running network services?

开发者 https://www.devze.com 2023-02-01 07:16 出处:网络
I am writing an application that needs to connect with a running network service on a Mac. Problem is, I have no idea what the service is called or even what port it uses. Is there a way to browse al

I am writing an application that needs to connect with a running network service on a Mac.

Problem is, I have no idea what the service is called or even what port it uses. Is there a way to browse all running network services on my Mac?开发者_运维百科

More info:

  • I am connecting to a MIDI network session (found under 'Audio MIDI settings', present on all OSX installs). Am I correct in thinking this is a network service?

  • I am planning to use NSNetServiceBrowser to locate all local computers running this service. (is this the best way to go about it?)

Any help is much appreciated - thanks!


  1. From:

"...no idea what the service is called or even what port it uses..."

try in terminal:

nc 192.168.1.30 1-9999

Replace 192.168.1.30 by your ip, and replace 1-9999 to the port range you want to scan. 1-9999 would mean scan from port 1 to 9999.
2. From:

"...network services on my Mac..."

Try Bonjour Browser. http://www.tildesoft.com/

Just a humble suggestion.


The Network Utility found under Applications/Utilities has an option to Port Scan a host, running against localhost will show you what ports are open for connections.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号