Re: Wake on Lan with Java



christopher_board@xxxxxxxxxxx wrote:


Hi all, thanks for the replies.

Would the subnet mask be the broadcast address. If not how would I
find it out.

I have put the subnet mask into the program but it is now coming up
with an error which says:
java.net.BindException: Cannot assign requested address: Datagram send
failed

No, the broadcast address is the network address plus a "host" of all 1's,
almost the inverse of the netmask. From your posts it isn't clear what your
network is, you are using the the 10.0.0.0 class A private network but you
don't say whether you've subnet it.

10.0.0.0 would have a default netmask of 255.0.0.0, but is typically subnet to a
class C network with netmask 255.255.255.0. In your case I presume you have the
class C subnet 10.11.12.0 with netmask 255.255.255.0, in which case the
broadcast address is 10.11.12.255. In general, for any IP subnet, the part of
the address representing the host (i.e. the part the netmask masks) can only
have N-2 hosts because "host" 0 is the network address and host N-1 (all 1
bits) is the broadcast address.

--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
.



Relevant Pages

  • Re: Network Help
    ... inet 192.168.X.X netmask 0xffffff00 broadcast 192.168.1.255 ... These cannot be on the same subnet unless you are trying to bond them, which I don't believe is available in 6.X. ...
    (freebsd-questions)
  • Re: Simple netmask question, could some one please answer this question for me.
    ... a different subnet per tunner. ... Address: 172.16.0.2 Netmask: 255.255.255.128 ... Set your router to be 172.16.0.1 ... broadcast address: 172.16.0.255 ...
    (comp.dcom.vpn)
  • Re: Simple netmask question, could some one please answer this question for me.
    ... a different subnet per tunner. ... Netmask: 255.255.255.0 ... Set your router to be 172.16.0.1 ... broadcast address: 172.16.0.255 ...
    (comp.dcom.vpn)
  • Re: spoofing ip as broadcast
    ... A subnet broadcast is sent out to the MAC address ff:ff:ff:ff:ff:ff ... only hosts in the same subnet will pay attention to the packet; ... As far out as practical that you can arrange, you should filter packets ...
    (comp.security.misc)
  • Re: spoofing ip as broadcast
    ... A subnet broadcast is sent out to the MAC address ff:ff:ff:ff:ff:ff ... only hosts in the same subnet will pay attention to the packet; ... As far out as practical that you can arrange, you should filter packets ...
    (comp.security.misc)