ethernet

Ethernet MAC address as activation code for an appliance?

Let's suppose you deploy a network-attached appliances (small form factor PCs) in the field. You want to allow these to call home after being powered on, then be identified and activated by end users. Our current plan involves the user entering the MAC address into an activation page on our web site. Later our software (running on the b...

How do you get the ethernet address using Java?

I would like to retrieve the ethernet address of the network interface that is used to access a particular website. How can this be done in Java? Solution Note that the accepted solution of getHardwareAddress is only available in Java 6. There does not seem to be a solution for Java 5 aside from executing i(f|p)confing. ...

Read MAC Address from network adapter in .NET

I'd like to be able to read the mac address from the first active network adapter using VB.net or C# (using .NET 3.5 SP1) for a winform application ...

How can I access netstat-like Ethernet statistics from a Windows program

Hi, How can I access Ethernet statistics from C/C++ code like netstat -e? Interface Statistics Received Sent Bytes 21010071 15425579 Unicast packets 95512 94166 Non-unicast packets 12510 7 Discards 0 ...

Detect another host with the same MAC address

How can I detect if another host is using the same MAC address as the current host, e.g. because the other host is spoofing? I'm working in an embedded environment, so looking for answers on a protocol level, rather than “use such and such a tool”. Edit: RARP does not solve this problem. For RARP to get any reply at all, there has to b...

Looking for network link speed determination algorithm

I'm looking for the best way to interpret the standard (well, standardish) Ethernet PHY registers, to determine the speed that an Ethernet link is actually running at. (e.g. 10/100/1000 and full/half-duplex) I daresay that this is to be found in the source of things like Linux, and I'm just off to look there now, but if anyone has a go...

Architectural Suggestions in a Linux App

Hi, I've done quite a bit of programming on Windows but now I have to write my first Linux app. I need to talk to a hardware device using UDP. I have to send 60 packets a second with a size of 40 bytes. If I send less than 60 packets within 1 second, bad things will happen. The data for the packets may take a while to generate. But if ...

How do I send an ARP packet through python on windows without needing winpcap?

Is there any way to send ARP packet on Windows without the use of another library such as winpcap? I have heard that Windows XP SP2 blocks raw ethernet sockets, but I have also heard that raw sockets are only blocked for administrators. Any clarification here? ...

How Ethernet receives the bits and forms the Data Link Layer Frame.

I am curious to know how the incoming bits at the physical layer are properly framed and sent to the data link layer. How the OS deal with this process. It would be grateful if you explained it in detail or give me some links/pdf. I am interested to know in depth about Layer 1 and 2 operations. Advance Thanks. ...

Sniffing data from a switch

I have 2 network devices that talk to each other over Ethernet. I would like to sniff the traffic using Wireshark. But the devices are going through a switch. The switch routes the traffic to only the ports that need the data. At another location I have a hub. All the traffic is repeated across all the ports. Is there a way to te...

How to send a WOL package(or anything at all) through a nic which has no IP address?

I'm trying to send a WOL package on all interfaces in order to wake up the gateway(which is the DHCP server, so the machine won't have an IP yet). And it seems that I can only bind sockets to IP and port pairs... So the question is: How can a create a socket(or something else) that is bound to a NIC that has no IP? (Any languge is ok. ...

How to access client system in LAN by using JSP?

Hi, I want to get data from a LAN system by using JSP. How can I make the connection between two systems? Thanks in Advance ...

How do I write data over an ethernet connection to an IP:Port address?

I have a need to write a quick and dirty application to write some data over an ethernet connection to a remote machine. The remote machine is sitting waiting for data, and I just want to blat some data at it to test the connection and bandwidth etc. I'd like to be able to, say, send a known pattern of data (simple counting or repeating...

How do I get the MAC address of a network card using Delphi?

As per title - can anyone help me? ...

Windows equalivalent to eth0

Is there a generic IP device name for windows similar to "eth0" used by Linux and Solaris? I am attempting to monitor SCTP traffic, which appears to be successful passing the ip address, but this means for every machine to use this application would changing to use the host address. Thanks ...

Windows packet capture software development kit

I am trying to port a packet sniffer from Linux to windows and am having trouble finding an appropriate API to the Ethernet device on Windows. I don't want to use WinPcap because I don't want to have to install WinPcap on the target machines. Is there an alternative which I can use which still provides a relatively easy interface. If it'...

What can make a .NET app freeze the computer?

I know this is probably the canonical "It depends..." question but I'd appreciate any pointers as to where to start looking. I have a client/server app talking over ethernet. In one computer I run the server and a client and on another just the client. One runs Vista and one runs XP. After an uptime of about 3 weeks the entire computer ...

How i can access original data from the ethernet?

Dear all I wanted to access the original value from the ethernet, actully by some hardware programming i am sending a value to system via ethernet ,but it's not possible to access what exactly i'm going to send ...

Windows networking using only Ethernet Frames

I'm doing a project where I must write a network library for a device connected to a Windows machine. The complication comes in that I may only communicate with the device using ethernet frames. So there is no TCP/UDP/IP at all. I don't think the bind/listen/accept approach can be applied here, but maybe I am wrong. Also, there is no ...

How do you send an Ethernet frame with a corrupt FCS?

I'm not sure if this is even possible since this might be handled in hardware, but I need to send some Ethernet frames with errors in them. I'd like to be able to create runts, jabber, misalignment, and bad FCS errors. I'm working in Python. ...