Brodcasting the message in the lan.

hi all,
i am writing one messanger program. when ever new user runs the program i want to notify all the computers in the LAN.
my issue is how to send message to all computer in the network.
please give me some solution.

Try to read javadoc for DatagramSocket - very helpful :)
Create socket; set broadcast to true; send - that's all.

Similar Messages

  • Sending a broadcast message to all the systems in the LAN

    Hi,
    I am having a standalone java application [client/server]. My application server is running on some system in the LAN.
    How can i identify that server ip in my client program?
    Is there any possibility for sending broadcast messages to all the other systems on a specific port?
    Thanks,
    Gupta.

    Is there any possibility for sending broadcast messages to all the other systems on a specific port?If you have more than one router/hub these will need to be setup to allow this traffic.

  • Windows Explorer no longer displays the LAN computers

    Hi
    I use Windows 7 SP1 Ultimate 64 bit, I'm in
    a local area network (peer to peer), I not do use the homegroup service and I have no
    firewall/antivirus activated.
    Now, I have a computer that has problems of
    resource sharing:
    1) When opening Windows Explorer from
    this computer, the LAN computers are no longer
    displayed. If I access these computers
    via \\<Computer-Name>, I see
    only their resources but I do not see
    their shared folders. How come?
    2) All the resources shared
    on this machine are no longer accessible to
    other computers. How come?
    Thanks
    Bye
    Balubeto

    Hi,
    This behavior may also be caused by following factors:
    •NetBIOS over TCP/IP is not turned on (enabled).
    •The Computer Browser service is not started or is turned off.
    •Then File and Print Sharing for Microsoft Networks is corrupted.
    Please follow these steps to check these factors:
    Step 1: Enable NetBIOS over TCP/IP
    1.Click Start, click Control Panel, and then click Network and Internet Connections.
    2.Right-click Local Area Connection, and then click Properties.
    3.Click Internet Protocol version 4 (TCP/IPv4), and then click Properties.
    5.Click the General tab, and then click Advanced.
    6.Click the WINS tab.
    7.Under NetBIOS setting, click Enable NetBIOS over TCP/IP, and then click OK two times.
    8.Click Close to close the Local Area Connection Properties dialog box.
    9.Close the Network Connections window.
    Step 2: Start the Computer Browser service
    1.Click Start, type services in Search box, and then click Services.
    2.On the right side, right-click Computer Browser, and then click Restart.
    3.Close the Service window.
    Step 3: Install File and Print Sharing for Microsoft Networks
    1.Click Start, click Run, type ncpa.cpl, and then click OK.
    2.Right-click Local Area Connection, and then click Properties.
    3.Highlight File and Print Sharing for Microsoft Networks, and then click uninstall.
    4.Repeat above steps and check on File and Print Sharing for Microsoft Networks to install this item again.
    If the issue still persists, please post back the error message when you try to access the shared folder or files.
    Kate Li
    TechNet Community Support
    I tried all your suggestions but all
    is remained unchanged and no error is displayed.
    Now, what can I do to fix this problem?
    Thanks
    Bye
    Balubeto

  • Does Tiger require ownership (and sharing) of wired printers on a wireless LAN? My G4 (Tiger) is also wired to the LAN, and can access all wired printers through the router. Wireless Macs cannot even find the printers.

    Does Tiger require ownership (and sharing) of wired printers on a wireless LAN? My G4 (Tiger) and all printers are wired to the LAN, and the G4 can access all printers through the router. Additional wireless Macs (Snow Leopard and Mountain Lion) cannot even find the printers. Yet, if the G4 shares the printers, then ALL computers on the LAN can access them. However, this requires the G4 to remain powered. Is there a workaround that would allow me to shut down the G4 and still use the printers?

    Hello BDAqua!
    Well, I am halfway there. Following your steps on the Snow Leopard MBP, the newer printer (a Canon MX860 inkjet) appeared automatically under the "default" icon on the ADD printer window. I used the IP icon with the HP Jetdirect-Socket protocol to find and add the older printer, (an HP 4000N). That required running a configuration page from the printer to locate its IP address. I printed to both printers through this laptop with success!
    I then followed exactly the same procedure with the Mountain Lion MBP. For both installation attempts, I got an error message window: Unable to verify the printer on your network. "192.168.111" may not exist or is unavailable at this time. Would you still like to create the printer? If I click Continue, it creates the icon and name in the printer list. However when I attempt to print from an app. the next message says, 'Printer is unavailable.'
    Why one laptop finds and uses both printers, and the newer laptop does not, just floors me!
    Thank you for your ongoing assistance.
    Bill

  • If someone pulls out the LAN cable ?

    I need to trap this event, and make some software handle the situation. Is there any event or message or interrupt generated when some one pulls out the LAN cable or the interface card is down ? If yes where n how can I trap one?
    Ciao...

    thanx, I've tried this. and the syslogd does put "hme0: Link down, cable problem?" in case I pull out the cable, but as the god (customer) wants it we need to take care of the situation if the customer gives a command like "ifconfig hme0 down" accidently!! and syslogd doesn't seem to be putting any messeges in this case. so still the problem remains half solved. any ideas.
    warm regards,
    Kashyap

  • "securely" use one ethernet interface for WAN and other for the LAN

    I am reconfiguring our dual 2.7 Intel Xserve running MacOSXServer 10.5.4, and had a question.
    Is it possible (or advisable) to use en0 to perform LAN services, and then configure en1 to only allow access to very limited service. VPN, FTP, CALDAV and later Mail.
    I imagine that this is possible via a firewall configuration, but first I do not know how to specify interface in addition to ports, and second I don't know how advisable this would be.
    Currently I have a DSL package from ATT with 5 static IP addresses. I have an Airport Extreme set up as one of those addresses providing DHCP and NAT to the LAN. I am using the LAN ports on the back of that to bridge my three switches (2 managed [clients and oce print server 100 base-T] and 1 unmanaged [ laser printers and copier 10 base-T]).
    I have the LAN based on 192.168.0.x, with the Xserve at 192.168.0.5. I have DNS configured and working (Thank you Antonio Rocco)
    I have 20 LAN clients, 18 mac 1 PC and one PC via Parallels. I will have no more than 1 or 2 WAN clients at any one time
    I provide AFP, SMB, Directory Services currently. As part of the reconfigure, I desire to take better advantage of the collaboration tools to provide wikis and CALDAV services. I also want to allow our employees to publish their individual calendars, so that they can subscribe to them at home, or vice versa.
    I would like to configure VPN, one for me to access configurations when I am away using Remote Desktop (I have used command line to some extent, but still feel more comfortable with the GUI tools) and second for limited access to content for certain users.
    It would also be very helpful for us to have a FTP site. It is unnecessary for this the be a FQDN service, sending the IP address is perfectly acceptable as we only use a service like this 10-15 times a year.
    (Related but unimportant in the grand scheme, is there a way to generate a link to the FTP server that you could email that not only is a link, but also a temporary username and password?)
    Thank you in advance,
    Ion Webster

    First, I missed a zero in the network speeds, I have two managed GbE switches that have all of the GbE capable machines connected to them, and an unmanaged GbE switch that has all the 10 or 100Base-T connections. My apologies for the mistake. That was one of the reasons I went with the GbE capable Airport to bridge the switches.
    Ok, I had been leaning towards a separate hardware firewall, but here is also where there is a hole in my knowledge. Do I need to look at something like the Linksys RVS4000 which bills itself as a +"4-Port Gigabit Security Router with VPN. Secure, smart Gigabit networking for growing business"+ I would like easy configuration, as I take care of these systems in addition to my job, rather than full time. This will be the first time I have set up a VPN connection, so even though I have spent a lot of time researching the manuals, and reading Schoun Regan (Apple Training Series) I don't have real world experience here. So if I buy more hardware, I want it to be the product that will provide the protection, and also allow me to configure it so that I can get these services running. All my VPN clients are running Macs, most on an AIrport connection and have their IP ranges in the 10.0.1.x range. all but one is on OS 10.5.x so I have a fairly homogeneous set of machines to make work together.
    I will review the links you provided regarding static routing, but I do believe the hardware solution is a better one, and wish to pursue it, for all the reasons you give, and that in the brief perusal of the links, it is more than I want to tackle.
    As far as FTP vs sFTP, I have no preference. I simply want a way to have online storage for transfer of large files on occasion. Ideally I want a folder, or a series of folders that are accessible for my LAN users to put items in and take them out, and for my (s)FTP users to do the same
    So long story short, the hardware solution I would like to purchase, I need to be able to do the following:
    VPN connections for content access and ARD access ( knew about and will ensure differing IP ranges)
    (s)FTP
    Calendar publishing
    mail(at a later time)
    Thank you for your help thus far.
    Ion Webster

  • Equium M50 will not recognise the LAN port - error: Network Cable unplugged

    I own a Toshiba Equium M50 and have problems with the Marvell Yukon 88E8036 PCI-E Fast Ethernet Controller.
    I used to connect via an 'ADDON' Modem/ADSL Switch and had no problems. I then replaced the ADDON with a 'NETGEAR' DG834G ADSL Modem/Router to gain the wireless port, and since then my machine will not recognise the LAN port. <error: Network Cable unplugged>.
    I know that the cables are OK as I used them with other laptops and had no trouble. I can also plug in a PCI card to connect without any problems. It looks to me as if the Marvell Yukon 88E8036 PCI-E Fast Ethernet Controller has a problem with the netgear Modem/Router.
    Anyone out there with a similar experience and some advice/suggestions?
    PLEASE

    Hi
    For me it doesnt show like a LAN card problem but your router is a problem.
    Check the device manager if the LAN card was properly recognized. If there are no yellow exclamation marks so everything is ok!
    You can try to delete the LAN card from the device manager and after new reboot install the LAN driver again.
    The issue has stared after installing or connecting the new Netgear modem router.
    Therefore I would recommend to checking firstly the settings or to update the firmware on this router.
    I have found additionally these useful websites
    http://compnetworking.about.com/od/windowsnetworking/f/cableunplugged.htm
    http://www.experts-exchange.com/Networking/Broadband/DSL_Cable/Q_20381405.html

  • Hp 7525 Photosmart printer won't scan to my PC but will scan to other PCs on the LAN

    Hp 7525 Photosmart printer won't scan to my PC but will scan to other PCs on the LAN.  I tried to install the printer software but it says it is already installed.  Do I have a security setting wrong?
    Other PC names show up on the printer's touch screen but not mine.  We are all on the same wireless subnet with the printer at a fixed IP address.
    I can print from my PC and scan from my PC but I can't scan from the printer touchscreen to my PC.
    tcliff

    Hi,
    You may have to start from your computer first:
        Double click printer icon on desktop,
        Select Manage Scan to Computer
        Click Enable -
        Restart your printer to see, is your machine in the list ?
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Does the DVR/STB have to be on the LAN for In-Home Agent to work?

    I'm a brand new user and am trying to learn the the new features that Fios brings to the party.  When my install was done I asked that the wireless feature be disabled on the router (I have a good wired network for my PCs and they were all connected to the supplied router).  All of my services work (TV, Ph, Internet) but I just noticed that when I go to In-Home Agent, the only selectable option is that for Internet.  I have a sneaky suspicion that the DVR/STB are controlled over the network.
    Can I connect the DVR to my wired network (Ethernet connection) and get the In-Home Agent functionality back?

    Verizon boxes communicate with the LAN via MoCA.  This is done over the coaxial cable.  If you have guide information then that is working properly.  Youy don't need wireless and the RJ-45 on the back of the STB is not active, so "hooking up" to your wired network would do no good.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Oracle 10G Non-Network install - OEM will not start when on the LAN.

    Greetings,
    Got through a non-networked 10G Enterprise installation OK; I chose to create the orcl schema, connected to it through various utilities, added new tablespace, and all was well. I also checked my Host Name by pinging it in DOS, it showed me the IP address of the MS loopback adapter which is what I was expecting.
    Once I connected the same machine to the LAN (and internet) and re-booted, for some reason the Host Name was now assigned the dynamic IP address of the LAN and not LAN2 (which is the loopback adapter that is assigned a static local IP address). It did this even though I had already added an entry in the /etc/hosts file that explicitly assigns a static IP address to the Host Name (as recommended in the Oracle 10G pre-installation instructions). I also could not get the OEM to launch a webpage, run and connect to the orcl database after the re-boot; I am wondering if this is related to the IP address assigned to Host Name changing; maybe the Oracle agent can no longer resolve the URL for some reason?
    In the end I find that the only way to insure I can have a working Oracle environment and be on an active network at the same time, is to bring up the Oracle environment on a standalone system first, and once Oracle is running connect the system to the network. Is there no way to automate this process?
    The format of the hosts file entry recommended by the Oracle 10G pre-installation instructions is as follows:
    ===========================================================
    IP_address hostname.domainname hostname
    where:
    IP_address is the non-routable IP address you entered for the loopback adapter.
    hostname is the name of the computer.
    domainname is the name of the domain.
    For example:
    10.10.10.10 mycomputer.mydomain.com mycomputer
    ==========================================================
    In my case since I am not part of a Windows domain (but am part of a Windows Workgroup), I added an entry in the /etc/host file that looks like the following:
    # Copyright (c) 1993-1999 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    # 102.54.94.97 rhino.acme.com # source server
    # 38.25.63.10 x.acme.com # x client host
    127.0.0.1 localhost
    192.168.110.250 IBM-6AB1330E158
    ==> Note that I did not add the domain name to the entry I created since I am not part of a domain, I also used the format I found in the etc/hosts file which is:
    IP_address hostname.domainname
    - not -
    IP_address hostname.domainname hostname
    Which is the format recommended in the Oracle 10G pre-installation instructions; this does leave me wondering which format is correct...
    Thanks in Advance for any help,
    ADG13

    I have not. I am hoping someone (maybe even from Oracle support) will step up and officially tell us we are either right or wrong in the way we are approaching this. From the research I have done on the internet it sounds like this should work, you should be able to have Oracle starting and running fine whether you boot connected to the LAN or not, assuming you have created the MS loopback adapter, assigned it a static IP, and changed the hostname entry in etc/hosts file as part of the 10G WinXP recommended pre-installation instructions.
    And yet I find I have to start Oracle when I am not connected to the LAN or the services will not start correctly. If this is a "feature" then hopefully someone will tell us and maybe give us a workaround or give us an idea if this will be addressed in a future release. Having said that and in fairness to the Oracle product; being a developer I have other products installed on my machine that have special networking setup needs also, and in my case this could be exasperating or even possibly causing this Oracle problem I am having. To be specific I have software for 2 different VPNs installed so I can tunnel into 2 private networks. One of these VPNs require me to make use of a DNS Suffix (as shown below) which might be contributing to my problems, not sure. I also have VMWare installed which uses it own network adapters when it is running, so you can see how things could get a little hairy... at any rate, there is my 2 cents worth (or is that 5 cents? : )
    fwiw,
    ADG13
    C:\Documents and Settings\Administrator>ipconfig/all
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : IBM-6AB1330E158
    Primary Dns Suffix . . . . . . . :
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : ibm.com
    Ethernet adapter Local Area Connection 2:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Microsoft Loopback Adapter
    Physical Address. . . . . . . . . : 02-00-4C-4F-4F-50
    Dhcp Enabled. . . . . . . . . . . : No
    IP Address. . . . . . . . . . . . : 192.168.110.250
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . :
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . : ibm.com
    Description . . . . . . . . . . . . . : Intel(R) PRO/1000 MT Mobile Connection
    Physical Address. . . . . . . . . : 00-11-25-13-96-AF
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 192.168.1.102
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.1
    DHCP Server . . . . . . . . . . . : 192.168.1.1
    DNS Servers . . . . . . . . . . . : 65.24.7.3
    Lease Obtained. . . . . . . . . . : Wednesday, January 11, 2006 3:40:08 AM
    Lease Expires . . . . . . . . . . : Thursday, January 12, 2006 3:40:08 AM
    Ethernet adapter AGN Virtual Network Adapter:
    Connection-specific DNS Suffix . : ibm.com
    Description . . . . . . . . . . . : AGN Virtual Network Adapter
    Physical Address. . . . . . . . . : 00-00-00-00-00-01
    Dhcp Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    IP Address. . . . . . . . . . . . : 9.49.217.159
    Subnet Mask . . . . . . . . . . . : 255.255.255.255
    Default Gateway . . . . . . . . . :
    DHCP Server . . . . . . . . . . . : 9.49.217.159
    DNS Servers . . . . . . . . . . . : 9.0.2.1
    9.0.3.1
    Lease Obtained. . . . . . . . . . : Wednesday, January 11, 2006 8:06:20 AM
    Lease Expires . . . . . . . . . . : Monday, January 18, 2038 10:14:07 PM

  • How to use the LAN NetStream for peer transmission, please help, write a sample code

    How to use the LAN NetStream for peer transmission, please help, write a sample code

    No reply, I reply, Oh

  • Is there a way of sharing received emails in the LAN? I mean, like the local folders but pointing to shared SAMBA folders.

    I work in a small company where every receive email is classified, stored and shared with everyone. This is implemented with M.S. Exchange shared folders. However, I am trying to get rid of the Exchange Server, install Ubuntu in every terminal and just use google as email server. What I did so far is to share some folders with SAMBA and point everyone's Thunderbird "Local Folders" to them, and this seems to be working well, but the problem is that Thunderbird Local Folders weren't meant to be shared. Actually, if someone adds any email to the folders the other people won't see any changes unless they restart Thunderbird. Also, as Thunderbird stores emails in mbox, when someone is seeing any email belonging to some folder, that folder gets blocked and other people are not allowed to see it.
    Is there a way in Thunderbird of sharing emails in realtime in the LAN? That would be a very useful tool for teamwork.

    Your coming at this from the wrong end.
    It is implemented by Exchange. In Outlook.
    So you need
    It is implemented by XXX. In Thunderbird.
    That is you need a server solution to the issue. You could get some if it using IMAP mail accounts but a real solution is probably a far better solution and shared calendars are a real boon I think.
    One that I think has some merit is http://www.sogo.nu/ but Zimbra is also worth a look http://www.zimbra.com/products/ I know very little about either product, so do your own due diligence.
    Those are certainly not the only exchange replacement packages available as this google search demonstrates http://www.google.com.au/webhp?nord=1#newwindow=1&nord=1&q=exchange+replacement&safe=off

  • Can I use the LAN port of my Airport Express, which is being used to extend my wi-fi network from my Time Capsule?

    I have a home wi-fi network based on a Time Capsule (3rd Gen.).  I recently added a new "n" Airport Express to extend my wi-fi coverage to areas of my home where the signal has been weak or non-existant.  The setup went very well (Airport Utility 6 on my MacBook Pro running Mtn. Lion) and was extremely simple and trouble free.  Now I am attempting ot plug an ethernet device (internet bridge reciver from a wirelss weather station) into the LAN port.  The weather station instructions say the device should communicate fine plugged directly into my router (not physically available where the device needs to be) OR plugged into a LAN port of an ethernet hub.  My question is then:  with the Airport Express in wi-fi extend mode, is the LAN port available to cable internet devices into the network?

    My question is then:  with the Airport Express in wi-fi extend mode, is the LAN port available to cable internet devices into the network?
    Yes, assuming that the setup went correctly.
    Test by moving your laptop or other computer close to the AirPort Express. Temporarily, turn off the wireless on the laptop and connect it using a spare Ethernet cable to the LAN port on the Express.
    See if you can get an Internet connection. If you can, you know the Express has been configured and is functioning correctly.
    Since the Express is in bridge mode when it "extends" both ports become LAN ports, so if you have a second device that needs an Ethernet connection, connect it to the WAN port as it will work as well.

  • How to find out the IP of other computers on the LAN?

    I've got several Macs/PCs in the LAN to which I can ssh using their IP addresses. They all appear under the "SHARED" section of sidebar in the Finder, but I can find no mention of their IP in the "Get Info" box for them.
    Is there a way to easily retrieve the IP for a device that appears in such a way in the Finder?
    Thanks!

    WakeOnLan seems to do nicely with Macs (I figured I would give it a try). I do have 2 entries that give "?".
    I tried WakeOnLan at work, but I don't know if the systems it found were given names because they have DNS entries, or if it was some other Windows or Linux specific self naming service.
    I also got a lot of "?".
    But I would say WakeOnLan is a Great idea.
    Then again, Bonjour on Windows can be useful on a home network. It will allow using names to access many services on the Windows systems, or at least those that hook into Bonjour.

  • How to set the default route on a RVS4000 to point to a gateway in the LAN

    Hi
    The dialog in the RVS4000 for static routes does not allow to set the default route to point to a gateway in the LAN. Clearly this is either a bug or a feature of the web-interface and not a restriction of the box, which runs some kind of linux. So my question is there a way around this problem rather then defining routes to n-class A networks to cover the internet? Like a terminal access to set the default route?
    Thanks and cheers
    Frank

    Hi David
    Thanks for your reply. I did already the first part and it seems that I presumed wrongly that the RVS4000 can be used as a layer 3 switch, instead it is only a 1-port gateway. Not that there is a technical limitation from the hardware or the OS of the box. It does layer 3 routing e.g. for its VLAN's. The only point to stop it from having the capability which I expect from something called router is to set its default route to the right gateway independant which port might be connected. The reason why I want a LAN port pointing to the gateway and do not use the WAN port without firewall is of course the VLAN capability of the LAN ports. The idea of the RVS is to bundle two nets, including the one where the gateway is on, and send it to a WAP4410N box, which nicely makes them wireless with different SSID's. Actually I have two ports connetced to the core network, if I am forced to have only the WAN port connected to the core, due to this artificial limitation, I would have to reconfigure a bit. Therefore I try to find an easier solution setting the route by "hand".
    Cheers Frank

Maybe you are looking for

  • Dynamic Creation of Columns based on Date from variable screen

    Hi Experts, Is it possible to create the Columns dynamically? My requirement is, for eg if the user selects the dates from 23Aug2008 to March2010 in variable screen, then in the output I should be able to drilldown and see the individual months data

  • Customer service - non stock consumption

    Hi Gurus, Some of the parts are procured for service orders as not to stock item (generating PR wrt service order by referring these items with item category N). Is it possible to invoice these items which are consumed against these account assigned

  • I had to wipe my computer clean so i downloaded new itunes now i can't sign in

    i had to wipe my computer clean so i downloaded new itunes now i can't sign in

  • TWO MASTER AND ONE DETAIL TABLE

    HI, I HAVE TWO SEPARATE MASTER TABLE WITH SAME DETAILS I MADE ONE DETAIL TABLE REFERENCES BOTH OF THE MASTER TABLES(BOTH MASTER HAVE SAME PRIMARY COLUMN NAME) , BUT WHEN INSERT RECORD IN DETAIL IT GIVES ME ERROR THAT PARENT KEY NOT FOUND(ALTOUGH I HA

  • Action events

    Ok i made this program that reads a log file and prints it out to the black screen, now i want to make it a GUI and when i press "Start" it does the same but prints it to the right text fields so i that i can eventually turn this into an applet. here