How to enumerate workstations in a lan

I have some trouble finding a way to enumerate al the workstation connected to a lan.
I need to enumerate only the workstations (not printers or other resources).
I really don't know where to begin.
I tried with NetworkInterface.getNetworkInterfaces(), ad then from the enumeration returned call the getInetAddresses() method, but what i get i my address.
please help.
thanx.

Java has no APIs for looking up workstations or
workgroups.
Try to find an implementation of SAMBA in Java.Ya, he's right.
InetAddress.getAllByName(String) only gives you all the IP addresses of a given host. It does not (and in fact, cannot) explore the machines inside a given domain name.
What you can see when you open "Network Neibourhood" in Windows is implemented by "CIFS (formerly called SMB)". So you'd rather want to find a free implemetation of the protocol in Java. Searching
Java Samba OR SMB OR CIFS libraryin Google may give you what you wanted.

Similar Messages

  • How to set Workstation Name on Solaris 10?

    Hi.
    I have problems with setting workstation name.
    I tryed to do it with Management Console, but system crashed, because there was missmatch between the name in few files. So I installed Solaris 10 again.
    How to change workstation name?
    Thank you.

    Thank you.
    There are two /etc/hostname files, they are empty: hostname and hostname6.
    /etc/hosts has what I need to change.
    I was unable to find /etc/nodename.
    Will it work, if I'll change only /etc/hosts and make "hostname <new hostname>"?
    In previous time when my system crashed, I changed: /etc/hosts, but it didn't work.

  • How to enumerate all items in a primary table

    I have a primary table with a data structure as its data element. I also have a secondary table with an index pointing into the primary table.
    Is there an example of how to enumerate all items and reset one of the fields in each element in the primary table to 0?
    thanks,
    chris

    Hello,
    Have you taken a look at the examples directory that come with
    your distribution? You did not mention what platform/version/API
    you are using, but under your Berkeley DB home directory you should find
    examples_c/examples_cxx/examples_java. Under those directories
    is a getting_started directory. I believe that the examples there
    illustrate what you are asking about.
    If you have not done so already, you can also check the sample code
    in the Chapter on "Secondary Databases" in the "Getting Started Guide" at:
    http://www.oracle.com/technology/documentation/berkeley-db/db/gsg/C/indexes.html
    Thanks,
    Sandra

  • How to set up a guest LAN? (small business, simple environment)

    First before getting into my actual post, please allow me to briefly express my sincere aggravation at this Cisco website for it's lack of proper IE 11 support.  When I try to create a forum post, well, there is no way to do it.  The old Create a Discussion link is gone (actually when I log into my profile, the entire Actions pane is gone).  The Ask a Question thing you first see is terrible, it doesn't support IE 11 apparently because the message body field is just gone.  I can put a Title, and tags, but there is no field.  there's also no compatibility mode button anywhere in the IE 11 interface one this site.  I was lucky in that the Actions pane shows up when you click on another person's post.  I don't think Cisco realizes how absolutely annoying that kind of thing is. 
    I have a single 192.168.0.0/24 LAN with a single Cisco SG300 series switch to aggregate all the network connections, a single gateway firewall/router to the Internet, and a few wireless access points on the same LAN.  These are the AP541N's.  My goal is to set up guest Wi-Fi, but have it that guests cannot see or access the internal network. 
    Haven't not actually done this before, I have no idea where to proceed.  I know I can create guest virtual AP's in the AP541N but that doesn't do anything to prevent a guest device from having full access to all of 192.168.0.0/24 computers. 
    What can I do?  Do I have to put in completely new hardware?  Should I be contacting the Cisco Small Business tech support group if the specifics are unique to the SG300 and AP541N models? 
    Any help is appreciated, both general advice but ideally a full solution reply can be possible :)

    Hi Valley ITPC,
    Here are some suggestions regarding the IE11 issue from the support team:
    How to off compatibility mode on IE 11 by following the instructions given on the link below:
    Assuming its IE11 on Win 7. http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11-win-7
    if not use this link http://windows.microsoft.com/en-us/internet-explorer/use-compatibility-view#ie=ie-11
    Hope this helps.
    Regards,
    Cindy
    Cisco Small Business Community Manager
    www.cisco.com/go/smallbizsupport
    twitter: CiscoSBsupport

  • How do I Set up a LAN with no access to the Internet?

    I have a Solaris 10 (08/07) [No longer can acess the internet]
    full install on one system, and Solaris 10 Developer Edition (09/07) on another system. Each has been auto-configured upon installation, and have reached the Internet, and registered at Sun Microsystems, from behind a router and cable modem.
    I want to create a Local Area Network, using a 4 port Netgear Ethernet Hub, model EN104tp, Each of the Solaris 10 systems, a Windows XP Pro system, and a Windows Media Edition LapTop. +(Which I want to have additional admin control, and access to the Server, from!)+
    My problem is this!
    1) Do I have to change any files to eliminate, the access to the internet from the two Solaris machines via router and cable modem? If so which, and, how do I? +(I intend for the LAN to be isolated from the internet)+
    2) What are the step by step, to set up a LAN?
    I can't seem to find that info anywhere. Maybe I am looking in all the wrong places...
    I appreciate and Thank You in advance for any help...

    The only difference between LAN and Internet is the size.
    Depends on how you define LAN -- it may be multiple subnets glued with routers or just one big or small subnet with bridges, switches and/or hubs or simply a crossed UTP-cable..
    If you don't have routers then you won't need a /etc/defaultrouter (rm -f /etc/defaultrouter; /usr/sbin/route -fn)
    You should use RFC-1918 addresses; i.e. chunks with a suitable mask of your choice as parts or whole of 10./8 (10.0.0.0 - 10.255.255.255), 172.16/12 (172.16.0.0 - 172.31.255.255) and/or 192.168/16 (192.168.0.0 - 192.168.255.255). Example 10.0.0.0/255.255.255.0 for a (256-2=)254-node subnet; 10.20.30.40/255.255.255.252 would suite a crossed-cable subnet perfectly.
    A DHCP-server would be nice for PC's. Solaris can do that (/usr/sadm/admin/bin/dhcpmgr).

  • How to enumerate list items

    Hello
    I have two lists, one is populated with list of IPs from DB
    by httprequest, and another one is empty and accepting drag and
    drop for the first list.
    Now, I would like to enumerate all dropped IPs in that second
    list.
    Does anyone can advice me how to do that?
    Thnx

    "orange_m" <[email protected]> wrote in
    message
    news:gd3296$obk$[email protected]..
    > It`s same like the one I`ve posted:
    >
    > <mx:List id="ips_list"
    > width="194" height="287"
    >
    > allowMultipleSelection="true"
    > dragEnabled="true"
    > dragMoveEnabled="true"
    > dropEnabled="true" >
    > </mx:List>
    >
    > Data provider for this list is XML(httprequest) in this
    format
    > <ips>
    > <ip>127.0.0.1</ip>
    > <ip>127.0.0.2</ip>
    > <ip>127.0.0.3</ip>
    > </ips>
    >
    > ips_list.dataProvider = event.result.ips;
    >
    > For preview these IPs in list, I`m using ItemRenderer
    >
    > <?xml version="1.0" encoding="utf-8"?>
    > <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml">
    > <mx:Label id="ip" text="{data.ip}"/>
    > </mx:HBox>
    >
    You can't really drag and drop XML like that. You need to
    clone the nodes.
    See
    http://tinyurl.com/4p88eq

  • How to set up different virtual LANs (using the E3200)?

    Hi.
    I would like to set up different virtual LANs (using the E3200) so that I can have two different networks that can't access each other.
    The E3200 is connected to a modem for internet access.
    I would like both networks to have access to the internet.
    Does the E3200 alone support creating virtual LANs?
    If not, is there another way I can meet the requirement using the E3200 alone (using something other than virtual LANs)?
    I'm ultimately thinking that I would need at least one other router.
    So for example,
    Router A (E3200) is connected to the modem and setup for DHCP using a LAN IP range 192.168.1.1/24.
    Router B is connected to Router A and setup for DHCP using a LAN IP range 192.168.2.1/24.
    In this way devices connected to Router A should not have access to devices connected to Router B and visa-versa, correct?  For example, Device X connected to Router A cannot ping or browse files on Device Y connected to Router B and visa-versa, correct?
    Would I need to setup anything else on Router B?  For example, do I need to setup DNS settings so that devices connected to Router B can connect to the internet without issue?  Would I need to specify that these virtual LANs are not bridged, and on which router, or both?
    I already know how to set up a static IP, DHCP, LAN IP ranges, and static DNS settings on a router, etc.
    In regards to wireless devices, I am thinking they would follow the same pattern; so wireless devices connected to Router A (E3200) have access to other wired and wireless devices connected to Router A but not to wired or wireless devices connected to Router B and visa-versa.  However, if wireless devices currently don't have access to wired devices also connected to Router A, then that is fine for now.
    Thank you very much!
    -Rami
    Solved!
    Go to Solution.

    The E3200 has no VLAN support according to the manual. There's no way to configure two separate networks with this router alone.
    You will need to add network electronics.
    Ex:
    Managed Switch with VLAN
    Another wireless router with VLAN
    If your modem supplies multiple public or private IP addresses then you could put a switch after the modem and two wireless routers attached to the switch.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

  • How to use hamachi to play LAN games?

    We (group of 7 friends) played blur by connecting to same wi-fi. What we usually do is create a wi-fi hotspot on a mobile (keeping the data pack off, so no internet access, this is what I like to call offline LAN, all friends connected to the same wi-fi which actually has no internet access), everyone connects to the hotspot. Go to the multiplayer tab on blur, go to LAN, one friend hosts a game, everyone connects to it and starts playing. No other third party softwares like hamachi or tunngle or anything else required. Now we want to play Garrys mod (prop hunt to be precise), but the approach as above does not work with this new game. We all got hamachi, it would not power on untill we turn the data pack of the mobile wi-fi hotspot ON. Is there any way we could play prop hunt the above way? The offline LAN way??

    Hi Pahup,
    Thank you for your reply!!
    I adapted an Android App using Flash CC on a Mac. I already published this App for the Apple App Store. When I published the App for Android I chose Air 3.7.xxx for Android. I also created the p12 certificate using Flash CC in the publishing settigns for Android. So my App is theoretically finished and ready for Upload.
    When I went to the Google Play Store Developer Console I had the options to
    1.) Upload APK
    or
    2.) Prepare Store Entry
    ...so I prepared the Store entry first. When I go to "APK"-Tab in the console it looks like this:
    ... it says "Upload APK" and the Button below "Get Licence Key". When I click on the license Key Button it looks like this:
    So I think I should enter this RSA-Key somehow into my App BEFORE uploading it to the Google Play Store. This is recommended when an Ap is set to be paid. My Application is set to paid.
    I did not use any kind of licensing API (until now - cause I don´t know how and what it is for)
    This is all new to me. It is the first App I want to bringt to the Android market. I really hoped it would be as easy as getting an app into the Apple App Store. I found so many step by step instructions for dummies on "How to get an Flash iOS App into the App Store plus creating all the certificates needed", so I thought it would be the same for Android. But there is no help at all at the moment. I am totally confused.
    So any help, hint or instrusction would be great!!
    By the way - this is the App I want to get into the Google Play Store

  • How to set global ip in lan

    hi guys.
    I am new to cisco .i have some basic question to ask.
    in my situation .i use a cisco 1841  .
    ethernet 0/0 .i set serval vlan in this port .with the address 10.x.x.x /24
    ethernet 0/1 .i set a global ip in it .with address of 219.x.x.x .and i have another global ip preserved .
    the nat is ethernet 0/0 ----> ethernet 0/1 .
    and my question is: how to create DMZ .i want to set another global ip in my Lan.
    how can i do this setting.
    any suggetsion?

    Thanks a lot .
    it work well for me now .
    i have a another question.
    i set the nat to gloable ip .and it works.i set it by the Cisco Configuration Professional
    in the edit the static nat.
    but there is a abnormal .
    when the electronic is down. the setting change to the old one.
    so what is the problem?

  • How to remove "workstation" that really is a gaming adapter?

    LELA is designating a WGA600N wireless gaming adater as if it were a workstation computer running XP.  Because of that designation, there is no "remove" option for the device.  I'd like to remove the workstation, so I can properly re-desginate the gaming adapter.
    I've renamed the device to "network gaming adapter" but that doesn't really help.  Doing so simply changes the graphic shown on the LELA screen.  LELA still displays the device as a workstation comptuer under the "details" option.
    Any guidance would be most appreciated.  Can I remove the "workstation?"

    Yes, you have accidentally installed some sort of adware. The fastest, most effective way to identify and optionally remove all currently known adware is by using AdwareMedic, developed by thomas_r. this Forum's malware guru, owner of TheSafeMac and a colleague of mine.
    If it turns out to be the Downlite adware, then they have managed to block your access to that site and you will need to use an alternate technique as described in About the Downlite adware.
    To understand why this happened an how to avoid such things in the future read John Galt's How to install adware.

  • How to enumerate classes belonging to a certain package

    Basically this is the question:
    How to dynamically enumerate classes belonging to a certain package ?
    Thanks

    Scan the class path for files in the target package.
    There isn't a simple way to do this and generally you should need to.

  • How can I get my wired LAN to share my iMac's wireless internet connection

    Hi. (sorry for the long-winded posting below. I really struggled to explain what I'm trying to do, but would really appreciate any help from people who can recognise what I'm aiming for!)
    I've seen several postings about sharing internet connection, but none (I think) which sort my problem.
    I have a wired LAN with 3 Macs connected to a router, and the router to a cable modem and the internet. All working fine. All Macs have internet access.
    I'm considering ditching my broadband provider, and so looking for a replacement configuration, at least for the short term.
    So, I'd like to change the arrangement, connecting one of the Macs to the internet (through a local free WIFI hotspot) using it's airport card (that bit is done) and enable the other two Macs to share that connection via the router.
    I've turned internet sharing on, and share connection from Built-In ethernet, on the internet connected Mac. But whatever
    Has anyone got this setup working?
    PB
    Intel iMac 4,1 (early 2006)   Mac OS X (10.4.8)   1Gb SDRAM, 2GHz

    You can share a connection through the router or you can share a connection from the Mac via Internet Sharing, but you can't share an already shared connection.

  • How can I create a WiFi LAN with AirPort ?

    I saw somewhere a WiFi LAN (a PC with an external box) where I could put my own "Shared Folder" and see everyone's on the Lan shared data.
    As far as I saw, with my included AirPort, I can't do the same, but this allows me to make an html server (computer to computer server, not LAN).
    Am I wrong or must I buy an external box (please name it and explain why) ?
    TIA,
    Emile

    I think part of the struggle here is in terminology. Don't take this the wrong way... after all I'm the one who is having trouble understanding the issue. These are hugely general definitions, but here goes:
    WiFi just means wireless communication between '802.11' devices. Cell phone service, bluetooth, cordless phone sets, etc sometimes use the word WiFi, but that's just confusing... here we only mean wireless computer networking.
    A LAN is a Local Area Network. In other words, two or more devices that talk using ethernet (even wirelessly) while geographically located very near to each other.
    Airport is Apple's general brand name for all their 802.11 wireless networking devices. They did not invent the technology behind Airport, and thusly 'Airport' has all the same limits and power as it does for Windows and Linux. The term 'Airport' applies to wireless cards in Apple computers, Apple-brand Wireless Base Stations (other brands call theirs 'wireless access points' or 'wireless routers').
    A server is just a computer that offers the transfer of data (like saved files, web pages, or email) to other devices.
    Given all of that, I'm left wondering exactly what you meant in your post--what you are going for, specifically. You said you saw a WiFi LAN in the form of a PC with an external box. Did you perhaps see a Windows computer getting its network access from an external wireless device? If you were able to share files, that was all the doing of the Windows computer, with the WiFi device probably just transmitting the data between the computers. Later on you said that you are able to make an html server for computer to computer, but not LAN. I'm not sure what you mean.
    In any case, let me just give you a run down of what you can do:
    If you have a Mac with an Airport Card, you can join or create a wireless network:
    --If you have an Airport Base Station, Airport Express, or third party Wireless Router, start here: http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh636.html
    --Since you implied that you don't have any external networking devices though (a router, base station, access point, hub, or switch), you can still likely 'make due' as long as your Mac has an Airport Card. To get that internal card to allow direct wireless connections to your Mac from other computers, start here: http://docs.info.apple.com/article.html?artnum=166640
    Once you have all the computers talking to each other, you can share files, share an internet connection, or even host a website for the other computers from your Mac.
    --If you want to read and write files stored on a Windows computer,
    ----turn on sharing in Windows: http://support.microsoft.com/default.aspx?scid=kb;en-us;304040
    ----then connect with the Mac: http://docs.info.apple.com/article.html?artnum=106471
    --If you want share your Mac's files with Windows computers, start here: http://docs.info.apple.com/article.html?artnum=107083
    --If you want to share your files in other ways (as a website for their browsers, for example), start here: http://docs.info.apple.com/article.html?artnum=106660
    --If you want to connect your Mac to a phone/dsl/cable modem and share that internet connection with the other computer(s), start here: http://docs.info.apple.com/article.html?path=Mac/10.4/en/mh336.html
    Finally, here's another page from Apple... kind of an overview of Windows/Mac network connections: http://docs.info.apple.com/article.html?artnum=19652
    In the end, no, you probably don't need an external networking box, but it would make everything easier, faster and (in my experience) much more robust. I personally suggest a Linksys WRT54G, but that's just me: http://www.linksys.com/servlet/Satellite?childpagename=US%2FLayout&packedargs=c% 3DLProductC2%26cid%3D1127782957298&pagename=Linksys%2FCommon%2FVisitorWrapper
    Reply back if I totally missed the mark or if you have more questions. Good luck with everything, Joel
    Mac: Too Many To List   Mac OS X (10.4.3)   all the Pro apps, Dev Tools

  • How to enumerate keys in Resource Bundle?

    Is there any way to enumerate all the keys (but not the values) of resource bundle?

    If rb is a ResourceBundle, you can enumerate the keys and values in its 'content' property with the following code:
    for (var key:String in rb.content)
        var value:* = rb.content[key];
    Gordon Smith
    Adobe Flex SDK Team

  • How can i connect to a LAN and external display at the same time using the mini-displayport?

    Hi all,
    At work i'm connected to the Lan via an adapter and the mini displayport. I want to use my external display at the same time, which use the same mini displayport. Are there any splitters available to use both at the same time? Are there any other alternatives?
    Thanks,
    Dennis

    There are USB to ethernet dongles:
    http://store.apple.com/us/product/MC704ZM/A/apple-usb-ethernet-adapter?afid=p219 %7CGOUS&cid=AOS-US-KWG-PLA

Maybe you are looking for