搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to I see the remote IP address of requests in the net tab of firefox developer edition

  • 4 回覆
  • 1 有這個問題
  • 5197 次檢視
  • 最近回覆由 adam320

more options

Some forums said the remote ip of requests is in the headers section on the net tab, but I just cant find it. Is this an option that can be turned on. I rely upon this when migrating sites and checking for DNS propagation.

被選擇的解決方法

That was the deal. Might want to write that into the instructions. IP only shows on first load, not after cached in FF.

從原來的回覆中察看解決方案 👍 1

所有回覆 (4)

more options

You need to click an item to open a details view panel at the right.

more options

I know that. The IP is usually under the 'Request Method' row. The instructions you sent say to hover over the domain to get the IP , but the title on hover is just the domain name.

more options

Works here if I hover the Domain column. Note that cached items do not have a tooltip. If necessary then reload the page and bypass the cache.

  • Hold down the Shift key and left-click the Reload button
  • Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
  • Press "Command + Shift + R" (Mac)

Some code for the Browser Console to extract all tooltiptext.

{let loc="chrome://devtools/content/netmonitor/netmonitor.xul";
let P = [];
let enumerator = Services.wm.getXULWindowEnumerator(null);
while (enumerator.hasMoreElements()) {
let win = enumerator.getNext();
let windowDocShell = win.QueryInterface(Ci.nsIXULWindow).docShell;
let containedDocShells = windowDocShell.getDocShellEnumerator(Ci.nsIDocShellTreeItem.typeChrome,Ci.nsIDocShell.ENUMERATE_FORWARDS);
while (containedDocShells.hasMoreElements()) {
let childDocShell = containedDocShells.getNext();
let childDoc = childDocShell.QueryInterface(Ci.nsIDocShell).contentViewer.DOMDocument;
if (childDoc.location.href == loc){
let el = childDoc.documentElement.querySelectorAll("label.requests-menu-domain[tooltiptext]");
console.log(loc,el.length);
for(let i=0;el[i];i++){P.push(el[i].getAttribute("tooltiptext"));}
}}}
console.log(P.join("\n"));
prompt("tooltiptext",P);
}

由 cor-el 於 修改

more options

選擇的解決方法

That was the deal. Might want to write that into the instructions. IP only shows on first load, not after cached in FF.