Windows virtual ethernet adapter send packets to software
up vote
0
down vote
favorite
I'm looking for a way to emulate a network adapter on windows and be able to use the packets in a program. The program will then send them over alternate means. I just need to create a virtual network adapter that gives me access to packets. Is there a pre-written custom driver for this or would I need to write my own? I read something about TAP driver for windows, but I'm not sure if it is what I need.
windows networking ethernet network-adapter
add a comment |
up vote
0
down vote
favorite
I'm looking for a way to emulate a network adapter on windows and be able to use the packets in a program. The program will then send them over alternate means. I just need to create a virtual network adapter that gives me access to packets. Is there a pre-written custom driver for this or would I need to write my own? I read something about TAP driver for windows, but I'm not sure if it is what I need.
windows networking ethernet network-adapter
The TAP driver creates a virtual network interface with its “cable” connected to the program opening the interface. That program is responsible for doing something sensible with the Ethernet frames it receives. Sounds like that could be what you want.
– Daniel B
Dec 7 at 15:20
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm looking for a way to emulate a network adapter on windows and be able to use the packets in a program. The program will then send them over alternate means. I just need to create a virtual network adapter that gives me access to packets. Is there a pre-written custom driver for this or would I need to write my own? I read something about TAP driver for windows, but I'm not sure if it is what I need.
windows networking ethernet network-adapter
I'm looking for a way to emulate a network adapter on windows and be able to use the packets in a program. The program will then send them over alternate means. I just need to create a virtual network adapter that gives me access to packets. Is there a pre-written custom driver for this or would I need to write my own? I read something about TAP driver for windows, but I'm not sure if it is what I need.
windows networking ethernet network-adapter
windows networking ethernet network-adapter
asked Dec 7 at 15:17
Synaps3
11612
11612
The TAP driver creates a virtual network interface with its “cable” connected to the program opening the interface. That program is responsible for doing something sensible with the Ethernet frames it receives. Sounds like that could be what you want.
– Daniel B
Dec 7 at 15:20
add a comment |
The TAP driver creates a virtual network interface with its “cable” connected to the program opening the interface. That program is responsible for doing something sensible with the Ethernet frames it receives. Sounds like that could be what you want.
– Daniel B
Dec 7 at 15:20
The TAP driver creates a virtual network interface with its “cable” connected to the program opening the interface. That program is responsible for doing something sensible with the Ethernet frames it receives. Sounds like that could be what you want.
– Daniel B
Dec 7 at 15:20
The TAP driver creates a virtual network interface with its “cable” connected to the program opening the interface. That program is responsible for doing something sensible with the Ethernet frames it receives. Sounds like that could be what you want.
– Daniel B
Dec 7 at 15:20
add a comment |
2 Answers
2
active
oldest
votes
up vote
1
down vote
Yes, for a standalone virtual interface, the most common method is indeed the TAP driver – originally made by OpenVPN to imitate the Linux built-in 'tap' interface type. It's open-source, but you'll probably want to use the official distribution as it's digitally-signed (a requirement nowadays).
The other approach is to build a custom driver doing the same thing. I believe that's what VirtualBox does for its "Host-only networking" feature (which is, also, a virtual interface sending all packets to software).
If all you need is layer3 (IP) packets, you can also try implementing the app as a Windows VPN provider, although this is only available for UWP apps – but doesn't require a driver.
add a comment |
up vote
-1
down vote
You don't need to emulate anything.
You already have an adapter in your computer that you may use.
This is the Microsoft Loopback Adapter, also known under the name of
localhost.
If you are writing a program, here are a couple of references to get you started:
- Example of Client-Server Program in C (Using Sockets and TCP)
- Server and client example with C sockets on Linux
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1381668%2fwindows-virtual-ethernet-adapter-send-packets-to-software%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
Yes, for a standalone virtual interface, the most common method is indeed the TAP driver – originally made by OpenVPN to imitate the Linux built-in 'tap' interface type. It's open-source, but you'll probably want to use the official distribution as it's digitally-signed (a requirement nowadays).
The other approach is to build a custom driver doing the same thing. I believe that's what VirtualBox does for its "Host-only networking" feature (which is, also, a virtual interface sending all packets to software).
If all you need is layer3 (IP) packets, you can also try implementing the app as a Windows VPN provider, although this is only available for UWP apps – but doesn't require a driver.
add a comment |
up vote
1
down vote
Yes, for a standalone virtual interface, the most common method is indeed the TAP driver – originally made by OpenVPN to imitate the Linux built-in 'tap' interface type. It's open-source, but you'll probably want to use the official distribution as it's digitally-signed (a requirement nowadays).
The other approach is to build a custom driver doing the same thing. I believe that's what VirtualBox does for its "Host-only networking" feature (which is, also, a virtual interface sending all packets to software).
If all you need is layer3 (IP) packets, you can also try implementing the app as a Windows VPN provider, although this is only available for UWP apps – but doesn't require a driver.
add a comment |
up vote
1
down vote
up vote
1
down vote
Yes, for a standalone virtual interface, the most common method is indeed the TAP driver – originally made by OpenVPN to imitate the Linux built-in 'tap' interface type. It's open-source, but you'll probably want to use the official distribution as it's digitally-signed (a requirement nowadays).
The other approach is to build a custom driver doing the same thing. I believe that's what VirtualBox does for its "Host-only networking" feature (which is, also, a virtual interface sending all packets to software).
If all you need is layer3 (IP) packets, you can also try implementing the app as a Windows VPN provider, although this is only available for UWP apps – but doesn't require a driver.
Yes, for a standalone virtual interface, the most common method is indeed the TAP driver – originally made by OpenVPN to imitate the Linux built-in 'tap' interface type. It's open-source, but you'll probably want to use the official distribution as it's digitally-signed (a requirement nowadays).
The other approach is to build a custom driver doing the same thing. I believe that's what VirtualBox does for its "Host-only networking" feature (which is, also, a virtual interface sending all packets to software).
If all you need is layer3 (IP) packets, you can also try implementing the app as a Windows VPN provider, although this is only available for UWP apps – but doesn't require a driver.
answered Dec 7 at 15:25
grawity
231k35486544
231k35486544
add a comment |
add a comment |
up vote
-1
down vote
You don't need to emulate anything.
You already have an adapter in your computer that you may use.
This is the Microsoft Loopback Adapter, also known under the name of
localhost.
If you are writing a program, here are a couple of references to get you started:
- Example of Client-Server Program in C (Using Sockets and TCP)
- Server and client example with C sockets on Linux
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
add a comment |
up vote
-1
down vote
You don't need to emulate anything.
You already have an adapter in your computer that you may use.
This is the Microsoft Loopback Adapter, also known under the name of
localhost.
If you are writing a program, here are a couple of references to get you started:
- Example of Client-Server Program in C (Using Sockets and TCP)
- Server and client example with C sockets on Linux
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
add a comment |
up vote
-1
down vote
up vote
-1
down vote
You don't need to emulate anything.
You already have an adapter in your computer that you may use.
This is the Microsoft Loopback Adapter, also known under the name of
localhost.
If you are writing a program, here are a couple of references to get you started:
- Example of Client-Server Program in C (Using Sockets and TCP)
- Server and client example with C sockets on Linux
You don't need to emulate anything.
You already have an adapter in your computer that you may use.
This is the Microsoft Loopback Adapter, also known under the name of
localhost.
If you are writing a program, here are a couple of references to get you started:
- Example of Client-Server Program in C (Using Sockets and TCP)
- Server and client example with C sockets on Linux
answered Dec 7 at 16:52
harrymc
252k11259560
252k11259560
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
add a comment |
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
Does someone think it's easy to implement a TAP or a driver, all in order to send messages?
– harrymc
Dec 7 at 20:12
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1381668%2fwindows-virtual-ethernet-adapter-send-packets-to-software%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
The TAP driver creates a virtual network interface with its “cable” connected to the program opening the interface. That program is responsible for doing something sensible with the Ethernet frames it receives. Sounds like that could be what you want.
– Daniel B
Dec 7 at 15:20