-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tun device in windows can't read data. #39
Comments
1 similar comment
no printing. Orz |
you should run the program as admin on UAC enabled Windows |
And if you ping the address of the virtual nic on the local machine, the NT kernel will intercept and reply the ping, you can try to ping the gateway via the tun device |
how do i send all data to Virtual Ethernet Adapter? |
@JavinYang when I using TAP device, it can read data from main program. using TUN device don't work. |
set the address of the adapter to 192.168.1.10/24 and the gateway 192.168.1.1/24. you ping the gateway, then you can read the data. |
@lixin9311 I had set the address of the adapter to 192.168.1.10/24 and the gateway 192.168.1.1/24. but using the TUN device still can't read data. using TAP device can read data. |
it's working on my pc, I'll look into this later |
I run this program in windows 10 in parallels desktop. maybe the vm has some different. |
I run this program in real windows 10, and found the Nic can't set IP address to 192.168.1.10, it set the IP address to 169.254.x.x, this IP address is assigned by system, not my program. |
there's some issue with netsh, you can try to set the ip by right clicking on the adapter icon. |
@lixin9311 how did you set windows gateway?what cmd you used? |
after run this program, I ping 192.168.1.10, but program print nothing. Please help!
The text was updated successfully, but these errors were encountered: