Questions tagged [network-interface]

Anything related to network interfaces, i.e. the hardware subsystems that allow systems to connect to a network. DO NOT USE this tag for purely hardware-related questions, which are off-topic on SO.

Anything related to network interfaces, i.e. the hardware subsystems that allow systems to connect to a network. DO NOT USE this tag for purely hardware-related questions, which are off-topic on SO.

274 questions
75
votes
3 answers

How do I get the network interface and its right IPv4 address?

I need to know how to get all network interfaces with their IPv4 address. Or just wireless and Ethernet. To get all network interfaces details I use this: foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces()) { …
Murhaf Sousli
  • 10,769
  • 18
  • 103
  • 170
35
votes
9 answers

Issue when trying to delete VPC and Network Interface

I am trying to delete AWS VPC (a non default one). I am getting error that "We could not delete the following VPC (vpc-xxxxxxx (xx.xx.xx.x/16)) Network interface 'eni-xxxxxx' is currently in use. (Service: AmazonEC2; Status Code: 400; Error Code:…
Sujoy
  • 486
  • 1
  • 6
  • 12
19
votes
2 answers

How does the OS know which network interface to use for the internet?

I have a PC with two network interfaces: eth0 and eth1. eth0 - Has an ip of 192.168.11.X/24. eth1 - Has an ip of 192.168.130.X/24. eth1 has internet connectivity. How does my OS know which interface to use when I try connecting to the internet?…
Uri H
  • 323
  • 2
  • 5
17
votes
8 answers

Can't connect to cassandra node from different host

I have a cassandra node at a machine. When I access cqlsh from the same machne it works properly. But when I tried to connect to it's cqlsh using "192.x.x.x" from another machine, I'm getting an error saying Connection error: ('Unable to connect to…
Chamila Wijayarathna
  • 1,572
  • 3
  • 25
  • 45
17
votes
6 answers

Linux getting all network interface names

I need to collect all the interface names, even the ones that aren't up at the moment. Like ifconfig -a. getifaddrs() is iterating through same interface name multiple times. How can I collect all the interface names just once using getifaddrs()?
tez
  • 4,013
  • 8
  • 41
  • 63
16
votes
6 answers

Virtual box Host only Network Interface

When I am trying to add a new Network Interface for Host only network, Virtual Box version :Version 5.0.22 r108108. I am getting a following error: Could not find Host Interface Networking driver! Please reinstall. Result Code: E_FAIL…
Arpit Agarwal
  • 471
  • 1
  • 4
  • 15
16
votes
4 answers

The host network interface with the given name could not be found

I'm running Windows 10, VirtualBox 5 and Vagrant 1.7.4 and trying to run openedx plateform. After i run vagrant up i got: Bringing machine 'default' up with 'virtualbox' provider... ==> default: Clearing any previously set network…
Bilal
  • 1,700
  • 3
  • 29
  • 46
14
votes
4 answers

How to Determine Internet Network Interface in Java

How do you determine which network interface is connected to the internet using Java? For example, I run InetAddress.getLocalHost().getHostAddress(); and within Eclipse this returns exactly what I intend, 192.168.1.105. However, if I package this…
Cavyn VonDeylen
  • 3,970
  • 9
  • 35
  • 51
13
votes
2 answers

Android NetworkInterface. What are the meanings of names of NetworkInterface?

I want to get available network of the current device, so I firstly get networkinterfaces list: NetworkInterface.getNetworkInterfaces(); Then, iterate every one: NetworkInterface intf = en.nextElement(); String name = intf.getName(); Here is the…
Allen
  • 153
  • 1
  • 1
  • 6
13
votes
2 answers

How to disable a VirtualBox network interface using a command-line?

When list virtual network interfaces, some of them are not anymore needed: vboxnet1: flags=8843 mtu 1500 ether 0a:00:27:00:00:01 vboxnet8: flags=8843 mtu 1500 …
Thierry Marianne
  • 9,193
  • 5
  • 28
  • 44
12
votes
3 answers

What exactly means iOS networking interface name? what's pdp_ip ? what's ap?

I use following code to print all interface and it's mac address - ( void )interfaceInfo{ int mib[6]; size_t len; char *buf; unsigned char *ptr; struct if_msghdr *ifm; struct sockaddr_dl …
Aladdin
  • 121
  • 1
  • 1
  • 4
11
votes
3 answers

How to specify a network interface when making net requests from Node.js?

In either http.request or net.connect, is there an option that I can specify a network interface to initiate a connection? EDIT: AFAIK in OS level I can specify address level, or load balancing into routing tables. But the way of interface choosing…
Vicary
  • 953
  • 13
  • 32
11
votes
3 answers

How to get accurate download/upload speed in C#.NET?

I want to get accurate download/upload speed through a Network Interface using C# .NET I know that it can be calculated using GetIPv4Statistics().BytesReceived and putting the Thread to sleep for sometime. But it's not giving the output what I am…
soham
  • 1,296
  • 4
  • 23
  • 44
10
votes
3 answers

How to identify orphaned veth interfaces and how to delete them?

When I start any container by docker run, we get a new veth interface. After deleting container, veth interface which was linked with container should be removed. However, sometimes it's fail ( oftern then container started with…
Sild
  • 2,270
  • 3
  • 13
  • 21
10
votes
0 answers

Netem and virtual interfaces

I need to emulate a network, introducing for instance random delay, and I need help to use NetEm. The scenario consists in two Ubuntu 14.04 machines: A and B. A and B have ip addresses 192.168.0.1 and 192.168.0.2 on eth1. To avoid to mess with the…
Paolo
  • 173
  • 1
  • 6
1
2 3
18 19