Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
リモートポートを使用してリモートに接続しているときにポート番号を取得できますか?NSURLConnectionたとえば、リモートポートはですHTTP(80)が、ローカルポートペアを知るにはどうすればよいですか?
NSURLConnection
HTTP(80)
ありがとう。
不可能です。iOSではNetstat情報にアクセスできません。
私はこれを試したことはありませんが、役立つ唯一のコマンドは「lsof -i」で、アプリケーションとそれらが使用する tcp ポートを表示することがあります。