[GH-ISSUE #10] OSError: b'\\Device\\NPF_Loopback: Error opening adapter: The system cannot find the path specified. #2

Closed
opened 2026-02-26 12:22:20 +03:00 by kerem · 3 comments
Owner

Originally created by @BioMycoBit on GitHub (Aug 27, 2021).
Original GitHub issue: https://github.com/brentvollebregt/whos-on-my-network/issues/10

Attempted to use both the pre-built module and binary and received the above error

Node: v16.4.2.
Python: 3.9.6

WARNING: No route found (no default route?)
[2021-08-26 21:03:42,831] ERROR in app: Exception on /api/run/single-scan [GET]
Traceback (most recent call last):
  File "flask\app.py", line 2070, in wsgi_app
  File "flask\app.py", line 1515, in full_dispatch_request
  File "flask\app.py", line 1513, in full_dispatch_request
  File "flask\app.py", line 1499, in dispatch_request
  File "whos_on_my_network\api.py", line 194, in run_single_scan
  File "whos_on_my_network\service\scanning.py", line 82, in scan_network_single
  File "whos_on_my_network\service\scanning.py", line 25, in __scan_network
  File "scapy\layers\l2.py", line 740, in arping
  File "scapy\sendrecv.py", line 676, in srp
  File "scapy\arch\libpcap.py", line 407, in __init__
  File "scapy\arch\windows\__init__.py", line 704, in open_pcap
  File "scapy\arch\libpcap.py", line 254, in __init__
OSError: b'\\Device\\NPF_Loopback: Error opening adapter: The system cannot find the path specified.  (3)'
192.168.0.22 - - [26/Aug/2021 21:03:42] "GET /api/run/single-scan HTTP/1.1" 500 -
Originally created by @BioMycoBit on GitHub (Aug 27, 2021). Original GitHub issue: https://github.com/brentvollebregt/whos-on-my-network/issues/10 Attempted to use both the pre-built module and binary and received the above error Node: v16.4.2. Python: 3.9.6 ``` WARNING: No route found (no default route?) [2021-08-26 21:03:42,831] ERROR in app: Exception on /api/run/single-scan [GET] Traceback (most recent call last): File "flask\app.py", line 2070, in wsgi_app File "flask\app.py", line 1515, in full_dispatch_request File "flask\app.py", line 1513, in full_dispatch_request File "flask\app.py", line 1499, in dispatch_request File "whos_on_my_network\api.py", line 194, in run_single_scan File "whos_on_my_network\service\scanning.py", line 82, in scan_network_single File "whos_on_my_network\service\scanning.py", line 25, in __scan_network File "scapy\layers\l2.py", line 740, in arping File "scapy\sendrecv.py", line 676, in srp File "scapy\arch\libpcap.py", line 407, in __init__ File "scapy\arch\windows\__init__.py", line 704, in open_pcap File "scapy\arch\libpcap.py", line 254, in __init__ OSError: b'\\Device\\NPF_Loopback: Error opening adapter: The system cannot find the path specified. (3)' 192.168.0.22 - - [26/Aug/2021 21:03:42] "GET /api/run/single-scan HTTP/1.1" 500 - ```
kerem closed this issue 2026-02-26 12:22:20 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Aug 27, 2021):

If you install Npcap, does this solve your issue?

A potential requirement for Windows that I have not documented: https://scapy.readthedocs.io/en/latest/installation.html#windows

<!-- gh-comment-id:906990518 --> @brentvollebregt commented on GitHub (Aug 27, 2021): If you install [Npcap](https://nmap.org/npcap/#download), does this solve your issue? A potential requirement for Windows that I have not documented: https://scapy.readthedocs.io/en/latest/installation.html#windows
Author
Owner

@BioMycoBit commented on GitHub (Aug 27, 2021):

Hey Brent. That did the trick.

<!-- gh-comment-id:907307527 --> @BioMycoBit commented on GitHub (Aug 27, 2021): Hey Brent. That did the trick.
Author
Owner

@brentvollebregt commented on GitHub (Aug 28, 2021):

Thanks for getting back to this. I've made a change (4362266ede) that will let the user know if the UI if this is an issue.

<!-- gh-comment-id:907551199 --> @brentvollebregt commented on GitHub (Aug 28, 2021): Thanks for getting back to this. I've made a change (4362266edebbc9f02af614469d8e560b18377c2f) that will let the user know if the UI if this is an issue.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whos-on-my-network#2
No description provided.