I'm making a system for reading smart-cards. The reader devices send out udp packets. Wireshark can see the packets but it says that they have an incorrect frame check sequence. This is on Windows 7, while on Debian it works flawlessly. I tried adding rules, for the specific ports used, to the firewall... even disabled it altogether... no joy :/
I wrote this bare bones code that should verify that the packets are reaching the java app :
try {
DatagramSocket s = new DatagramSocket(null);
InetSocketAddress address = new InetSocketAddress("192.168.1.100",8888);
s.bind(address);
byte buffer[] = new byte[1024];
DatagramPacket packet = new DatagramPacket(buffer, buffer.length);
while(true)
{
System.out.println("Waiting...");
s.receive(packet);
System.out.println("Received!");
}
} catch (Exception e) {
e.printStackTrace();
}
It seems that they aren't ... any ideas?