#131854 - 22/12/2002 11:40
Will Mac OS X see an EMPEG (jEmplode) Using X-Over
|
stranger
Registered: 24/07/2002
Posts: 37
Loc: Los Angeles, CA
|
Home network is setup wireless but I'd like the EMPEG to be wired using a Cross Over Cable (Cat 5) from the EMPEG to the Mac. Are there any limitations here or is it a simple process and jEmplode (.jar or the OS X specific version) will find it?
|
Top
|
|
|
|
#131855 - 22/12/2002 12:19
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-Over
[Re: Xpyder]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
You'd have to specify an IP address on the Mac's ethernet port (which I assume is currently unused) and on the empeg, as there will be no facility for automatic address assignment. And I'd suggest going ahead and specifying the empeg's address within jEmplode rather than relying on broadcast scans working. (It might work with broadcasts, but I don't know how jEmplode determines the correct broadcast address and it might not select it properly, but since there's no detriment in specifying it, you might as well.)
I can see how there might be some problems with getting the Mac's ethernet port's autonegotiation of speed and duplexity working right, but you should be able to overcome those without much effort if they do crop up.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#131856 - 23/12/2002 08:29
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-Over
[Re: wfaulk]
|
pooh-bah
Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
|
There have been a lot of interations of how broadcasting works in jEmplode ... Currently, I attempt to retrieve all the IP address that are assigned to your machine, and then go through each octet making a broadcast on each subnet (255.255.255.255, 192.255.255.255, 192.168.255.255, 192.168.1.255, etc). It seems to be pretty good these days about tracking down your Empeg. However, if the Empeg doesn't have a dynamically or statically assigned IP (i.e. just crossover w/o DHCP) then I'm not entirely sure what will happen, so it's definitely best statically assign it and set it in jEmplode.
The Mac autosensing crossover support is generally really good, so I think it will work fine.
ms
|
Top
|
|
|
|
#131857 - 23/12/2002 08:48
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-
[Re: mschrag]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
That must be why I had trouble with jEmplode's broadcasting sometimes. I have a network whose broadcast address is 192.168.2.128, so it wouldn't ever catch that one with that algorithm, would it?
_________________________
Bitt Faulk
|
Top
|
|
|
|
#131858 - 23/12/2002 10:46
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-
[Re: wfaulk]
|
old hand
Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
|
I have a network whose broadcast address is 192.168.2.128
yikes. well... actually, assuming that jemplode can figure out the correct subnet mask, if your mask is 255.255.255.128, it should catch it, if i recall my CCNA readings. but if there isn't, jemplode might as well port some nmap routines to quickly syn ping the whole subnet. i also was reading something on /. few months back about "black ops in tcp/ip" where they wrote a program to find which ips had port 80 open... yeah, nothing new except they got the results of 65000 ips in 3 seconds.
|
Top
|
|
|
|
#131859 - 23/12/2002 10:56
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-
[Re: image]
|
carpal tunnel
Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
|
The problem is that there is, IIRC, no portable way to determine netmasks or broadcast addresses or network addresses in any language. Under most Unices, SIOCGIFNETMASK would work, but I doubt that works under Windows, nor do I know if Java has any such ioctl construct.
_________________________
Bitt Faulk
|
Top
|
|
|
|
#131861 - 23/12/2002 13:12
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-
[Re: wfaulk]
|
pooh-bah
Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
|
Yep -- This is the root of the problem... With a "weird" netmask, jEmplode would have no idea (that I know of, anyway) to detect it. This is definitely not my bag, though, so if someone knows of a way in Java to do this reliably, I'm all ears.... 1.4 has a much slicker way to enumerate interfaces -- I wonder if it has a getBroadcastAddress() on it? Even if it did, though, I'd have to still have a fallback mechanism for 1.1 VM's.
Mike
|
Top
|
|
|
|
#131862 - 27/12/2002 14:20
Re: Will Mac OS X see an EMPEG (jEmplode) Using X-
[Re: mschrag]
|
pooh-bah
Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
|
Currently, I attempt to retrieve all the IP address that are assigned to your machine, and then go through each octet making a broadcast on each subnet (255.255.255.255, 192.255.255.255, 192.168.255.255, 192.168.1.255, etc).
FWIW, it still doesn't work in all scenarios. My server running FreeBSD with 2 NICs can never find the empeg. But that config is pretty funky, the 'outside' NIC has a static bogus address (192.168.0.1) and a dynamically assigned real address doing PPPoE. The inner interface has another static non-routable address (192.168.101.254). There is also a virtual interface used for a VPN with a third non-routable IP. So four IP's total several of which have firewall rules applied to them and two of which are doing NAT just to make it a little more complicated. All the all the netmasks are .255s though so your search routine should work AFAIK. I have been meaning to ask you for a while if you could add an option to specify a network or at least interface to search.
-Mike
|
Top
|
|
|
|
|
|