問題タブ [netbios]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
node.js - node.jsでLAN内のプライベートIPからコンピュータ名・NETBIOS名を取得する
ローカル ネットワーク (例: 192.168.1.x ドメイン) 内のすべてのオンライン デバイスのリストがあります。Windows と Linux の両方で動作する node.js を使用して、コンピューター名/NETBIOS 名を取得したいと考えています。Windows コマンド プロンプトで、コンピューター名を指定する 3 つのコマンドを見つけました。
そしてtracert
:
またnbtstat
、Windowsでも使用できます。
Linux では、ping に解決ホスト名設定 ( -a
) がなく、traceroute でコンピューター名がわかりません。私が見つけた唯一の解決策は、 (Linux)nbtstat
と呼ばれる (Windows) と同等のものです。nmblookup
node.jsでコンピューター/NETBIOS名を取得する普遍的な方法はありますか?