Datagram Sockets possible without locally available IP addresses?

Hi everybody,
before starting to dig into socket programming for the next few months, I'd like to get some facts clear that don't clarify to me by consuming the developer handbooks.
I would like to send datagram packets out on all interfaces without bound sockets, i.e. I want to start something similar to a DHCP broadcast. Is this possible with Java? AFAIK always sockets are required , even for datagram communication.
Thank you

Hi! Thanks for you replies.
I'm trying to create some kind of alternative host configuration protocol with a reference implementation. Since the server software will run on Java for various purposes, it would be fine if also the client software could be implemented in Java. Therefore, I'd need the possibility to send out datagrams on unconfigured network interfaces.
As far as I have understood the DatagramSocketAPI, there's always the need to have a local socket available (IP address + port number) to actually send data - is that true?
Thank you!

Similar Messages

  • Urgent Datagram Socket

    hi to All,
    I am facing some problem when i am broadcasting a data packet by using the datagram socket in java
    I am using the IP Address 255.255.255.255 to broadcast a packet . The Packet is send , but the programs goes in Indefinite till when receiving a Message from the Machines that are connected in the Local Network !!!!!!!!!!!
    Actually , i wana to collect all the Machines IP Address by sending a Broadcast Packet(by using UDP) . Can i body tell whts the Solution of this probelm , so that i retrieve the IP Address of the Machines that are connected in a local Network

    " You can only do it if you know that all machines will respond to an udp package on some port."
    HI
    I am having trouble in broadcasting the data on 255.255.255.255 at port 3988.
    Can you people send me the code for -
    How to broadcast the data on 255.255.255.255 at port 3988 ??
    and
    How it can be received by any client machine at its port 3988 and How client can come to know from where the data is coming i.e. from which machine the data is coming.
    As you have told that it is possible if we know the port "You can only do it if you know that all machines will respond to an udp package on some port.", the port is 3988.
    Thanks & Regards
    Abhishek

  • Datagram Socket Problem !!!!!!!!!!!!!!!

    Hi to All ,
    I am facing problem regarding the Datagram Socket Programming .
    I wana to make a java program that is using the datagram socket. I wana to retrive the IP Address of all the machines that are connected in a local network by using the datagram Socket !!!!!!!!!!!!!!
    As i am new in java Socket Programming , Can any body help me How am i sends a Broadcast Packet to all the machines that are connected in a local network , so that i retrieve the IP Address of all the machines that are presented in a local network
    Please give the Solution

    You can't use any Java to find all the machines on your network (whatever that means). You will need to shell out and parse the output from the shell.
    If you want to simply use datagram sockets to send UDP broadcasts, the Javadoc covers it in some detail.
    However, UDP is called a "send and pray" protocol - you send the message and pray that the client receives it. Also, there is no acknowledgement from the client when the message is received. So, in a nutshell, you cannot use multicasts to find clients.
    You need to use some other protocols in the TCP/IP stack for finding machines on the network - and Java does not have any pre-built support for these.

  • Is proxy to proxy is possible without Exchange Infrastructer (XI)

    Is proxy to proxy is possible without Exchange Infrastructer (XI)?
    my question is if both applications can generate xml, do they require xi to exchange messages or it can connect directly.
    how do they communicate? Is the correct?

    Proxy and interface generation can be used in two ways:
    - XI runtime and communication by Integration Server
    - Web Service Runtime
    Currently, Web Service Runtime can only be used for synchronous communication. You can define a web service and make a point to point connection without using the Integration Server.
    I'm pasting a help document on this:
    Point-to-Point Connections
    If two communicating ABAP proxies don't require any of the services that are provided by the Integration Server, you can use the logical port to switch to the Web service runtime and thereby accelerate the rate of message exchange. In addition to the logical port, you also require a virtual interface and a Web service, which has been released in transaction WSADMIN for the generated server proxy. To address the receiver at the logical port, create an HTTP destination to the released Web service and enter the destination in the logical port.
    The only other difference between the programming models is the protocols that are available. Because the XI Runtime supports Exactly Once In Order quality of service, there is an asynchronous protocol available that enables you to set the serialization context. You access the protocol the same way in both cases: Using the GET_PROTOCOL method of the proxy, you get a protocol instance that provides the required attributes and methods for the protocol. If the active runtime does not support the protocol, an exception is triggered.
    As illustrated above, you can switch from XI communication using ABAP proxies to communication using Web services. However, the reverse is not possible because message interfaces support only a subset of the range of WSDL commands. For example, the XI protocol expects a predefined structure for fault messages whereas a fault message can have any structure in WSDL.
    In addition to a point-to-point connection using the Web service runtime or a connection using the XI Runtime, there is also a third option. Since the Integration Server can process SOAP messages, you can also call a Web service by using the Integration Server. The Integration Server receives the SOAP message from the caller and forwards it to a receiver in accordance with the configuration in the Integration Directory (here, too, only synchronous calls are currently possible). Therefore, the receiver does not have to be a proxy. Because you can use the services of the Integration Server for this Web service call, it is known as an enhanced Web service. The following steps are required to define an enhanced Web service:
    1. To be able to generate a WSDL description for the caller, you require a message interface. This can be either an outbound or inbound message interface. The message interface is not necessarily required for further configuration because it describes only the signature for the caller.
    2. In the Integration Builder for configuration, call the menu Tools -> Define Web Service. You create a WSDL description by entering the following details in the wizard:
    • The address of the Integration Server or another Web server that is to receive the SOAP call
    • The message interface from the first step to publics the call signature via the WSDL document
    • Details about the sender of the SOAP message (party, service and outbound interface)
    • When the Integration Server receives the SOAP message, it requires these details to evaluate the configuration data. You enter the details about the sender in logical routing or interface mapping and in the colaboration agreements.
    3. The caller can use the generated WSDL description to generate a client proxy and then send the SOAP message to the Integration Server by using the Web service runtime. You configure the receiver for the SOAP message on the Integration Server.
    Hope this helps.
    Regards,
    Gökhan

  • Socket Connection without a CrossDomain.xml File?

    I am developing an air application will be run on a number of client workstations and will be using the assql library to connect to a mysql server that is running on a local network. Is it possible to make a socket connection without the target server having a policy sever or a crossdomain.xml file?
    The article Setting up a socket policy file serverleads me to believe that this is not possible.
    It would be advantageous if the application could be setup to treat the mysql server as trusted and avoid needing the server to have a socket policy server running on it.
    I am developing my application using FlexBuilder3 and would like to know of some way to work around needing a policy server or crossdomain.xml file.
    An optimal solution would be setting a compiler option in my application, or adding a configuration option to the application xml descriptor. Are there any solutions of this ilk that might be possible?
    Any help would be appreciated.

    I'm pretty sure you don't need to worry about the cross-domain policy file when using sockets in Air. I'm in the process of creating an irc client which so far connects to an irc server without issue. But I don't know if the same can be applied to your situation, although I don't see it being much different from what i'm trying to do.

  • Is there a way to send an e-mail to everyone in my address book WITHOUT typing/selecting each address in individually?

    My old e-mail address is going to be discontinued and I need to notify everyone in my Mozilla Thunderbird address book. Is there a way to send an e-mail to everyone in my address book WITHOUT typing/selecting each address in individually?

    Bonjour zmerill
    Yes it is possible and simple to do.
    - In the compose window of TB, display the address books on the left
    - select the adress book you want
    - select normally the first contact (left click)
    - while pressing a shift key, select the last contact (--> all selected)
    - just under the last contact, use the button you want.
    In an address book it is also possible to create a mailing list.
    Pierre

  • Datagram socket and security manager

    I have subclassed the security manager to implement my own network security rules.
    However when the receive(datagramPacket) method is called by the my datagram socket, the host parameter passed to the checkAccept(host, port) method does not belong to the sender of the packet(to be received).
    How then can malicious addresses be blocked by the security manager, as suggested by the comments in the source code of DatagramSocket.
    Any help is greatly appreciated. Thank you in advance.

    However when the receive(datagramPacket) method is
    called by the my datagram socket, the host parameter
    passed to the checkAccept(host, port) method does
    not belong to the sender of the packet(to be
    received).It should. What are you getting instead?

  • Datagram Socket  send different sizes Buffers ...

    hi,
    I'm sending different sizes Datagrams from a datagram socket
    so how can I receive them
    I've tried to send the packet in two packets the first one is fixed size that carries the size of the real data then create a suitable buffer on the client side to receive the second packet but the result is very slow ...
    I'd like to know any suggestions about how to do this properly
    to reach a stream like synchronization between the client and the server ..
    thanks in advance

    use a receive buffer large enough for the largest package possible on your network. Typically, this is 1500 data bytes, but it depends on the network technology. If you want to be sure, allocate a 65536 bytes buffer, which will fit for any technology. But typically, 1550 will fit in a LAN.

  • Datagram socket is not working

    Hi,
    I made a datagram socket and try to send a byte array. but when I called socket.send method it returned an error that an operation is attempted on invalid socket. What I am missing
    here is my code...
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="480" height="262">
    <mx:Script><![CDATA[
    private var udp:DatagramSocket = new DatagramSocket();
    private var address:String = "255.255.255.255";
    private var port:uint = 200;
    private function OnSend():void
      udp.addEventListener(DatagramSocketDataEvent.DATA, RecvUdpDataHandler);
      var byteArray:ByteArray = new ByteArray();
      byteArray.endian = Endian.LITTLE_ENDIAN;
      byteArray.writeMultiByte("dvcrNetshare", "US-ASCII");
      byteArray.writeUnsignedInt(123);
      udp.send(byteArray, 0, byteArray.length, address, port);
      udp.receive();
    private function RecvUdpDataHandler(obj:DatagramSocketDataEvent):void
      var str:String = obj.srcAddress;
      var srcport:int = obj.srcPort;
    ]]></mx:Script>
    <mx:Button x="206" y="134" label="Send" click="OnSend()"/>
    </mx:WindowedApplication>
    Thanks

    You can call Apple and appeal their decision if you wish to (or go back to the store and ask for a supervisor or manager to assess your device - basically dispute the genius claim and ask to have it bumped up the chain of command).  Ultimately though they are the ones who decide if your damage is a warranty-related defect or something caused by accidenatal damage or abuse.  If they say you are not eligible for a warranty repair, then you pay the fee for an out of warranty repair.

  • Datagram Sockets

    Hi Folks. I am curently devising an presence service andinstant messaging system on UNIX. The problem is I am looking to open a datagram socket connection with a client on another computer on port 1115. Hhow am I able to send them a message without them having to run any program on their system. How can I just send the message to them, like a proper instant messaging system.
    PS How do i get them to listen on port 1115, without them having to do anything. How can I open a server connection on port 1115 for them
    Any help is appreciated
    Ewan

    When you "proper instant messaging system" I assume you mean something like talk or ytalk rather than ICQ or YahooIM. The former have daemons that run listening for messages which are started by the system.
    the user (or administrator) of the machine is going to have to explicitly open a socket to listen for connections on the port, by running a program or by having a daemon start at boot.

  • HT3798 my iPod was originally connect to an old HP. The HP has since died and now I own a Macbook pro. I want to transfer the music from my iPod (originally synced with the HP) to my Macbook Pro. Is this possible without losing the music on my iPod?

    my iPod was originally connect to an old HP. The HP has since died and now I own a Macbook pro. I want to transfer the music from my iPod (originally synced with the HP) to my Macbook Pro. Is this possible without losing the music on my iPod?

    Your iPod is designed to sync with only one iTunes library at a time.  It will recognize the iTunes library on the PC as a new library.  If you sync the iPod with this new library, all content will be erased from the iPod and replaced with what is in the new library.  So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • Is clone Siebel server environment possible without using nsbrowse utility?

    Hi, can someone give me a quick firm answer about my question "Is clone Siebel server environment possible without using nsbrowse utility?" We try to automate the Siebel server enviornment using cloning and reconfig on Linux while nsbrowse is a utility only runs on Windows. Is there some command line commands that can be used as a replacement of nsbrowse editor utility? This is very important for us to made the decision on automation strategy. Thank you very much!

    "...hosted in a datacenter for high availability for when internal environment fails and the mail system is still up and running. "
    Yes, Office 365 (Exchange Online) would work perfectly with DirSync.
    If the requirement is for mail to work even when the internal environment is down, then do not implement AD FS because in that scenario, authentication is dependent on access to the domain controllers in the internal environment.
    As for simply hosting one's own server in Azure, I just read an article that recommends against it:
    - Exchange uses alot of resources. You would need a rather expensive configuration.
    - You would still be responsbile for the updates.
    - Your VPN connection would have to be very reliable. Exchange is constantly querying the domain controllers / global catalogs. EDIT - I see you wrote "without a VPN" - well, that's not possible. Exchange will never work directly across the Internet
    like that.
    I can't find the link to the article but there are others that also advise against that option:
    http://paulrobichaux.wordpress.com/2014/05/15/exchange-server-and-azure-not-now-vs-never/
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • FaceTime: I have a iPad, iPhone, iMac all on the same apple Id/account. Without changing id/email address can I use FaceTime between any 2 of my devices? It works from iPad to iPhone but not the other way??? I would like talk/see my kids if am away

    FaceTime: I have a iPad, iPhone, iMac all on the same apple Id/account. Without changing id/email address can I use FaceTime between any 2 of my devices? It works from iPad to iPhone but not the other way??? I would like talk/see my kids if am away.
    Hope you can help.
    I have added a new email address but kept my Id, but I get busy when trying from iPhone to iPad as they are clashing. Like find my iPhone app hence trying to keep them all on one account

    IOS: using facetime http://support.apple.com/kb/ht4319
    using an ipad will use the email address since you can't make a phone call.  see the link.
    Your basically calling/emailing yourself that's why your getting a busy signal.

  • NFS write access without local user

    Hi,
    I try to get write access to NFS from one to another linux system without local user account and group.
    System 1. /etc/exports -->set nfs share /backup
    Folder /backup all files owned by oracle:oinstall
    oracle(104):oinstall(106) 664
    System 2. user: root(1):root(1)
    #>mount -t nfs .....
    All files are owned by userid 104 and groupid 106
    I can get write access If I change userid and group id on system 2 to 104/106 but I think that could be smart way.
    Does anyone know the right was to get write access without have a same local user(id) and group(id)
    Thanks
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You can try the following in your /etc/exports file:
    /backup   *(rw,insecure,all_squash,anonuid=104,anongid=106)
    Then reload the exports file using the command "service nfs reload"The above will allow rw access to the /backup directory and map all requests to the nobody account and remap the nobody account uid and guid to 104 and 106 of the nfs server system. The insecure option is required by some PCNFS clients. For more detailed information please check the exports man page.

  • How do I move/copy contacts from Entourage to iCloud Address Book without creating duplicates? Address Book on Mac, iCloud, iPhone and iPad is now empty

    How do I move/copy contacts from Entourage to iCloud Address Book without creating duplicates? Address Book on Mac, iCloud, iPhone and iPad is now empty

    Thank you for letting me know!
    Going to give it a go. Had a back up of all my clients files stupidly not my software as I have the originals disks. Just realised that amongst the software is ibiz and have lost al my accounting and billing files for the last 7 years want to cry so losing my contacts now will really tip me over the edge!
    Fingerscrossed this works!

Maybe you are looking for

  • REMOVING ORACLE 10G 64BIT

    Could someone please explain brielfy to me how to uninstall the above? I inadvertently downloaded the wrong bit and installed it. If the installer is involved how would you start the installer up? Thanks for any help you can give. al

  • Header text - DO to Billing

    Hi, can anyone advise if standard SAP behaviour such that the billing header text is copy from SO instead of DO even though the same text id and access seq appears in SO and DO header yext control configuration as well?  I found out this is bcos even

  • Focus search field when open Presets and Effects panel

    Hi Adobe-Forum. I like to get the cursor automatically placed into the search-field of the preset and effects panel. Exists a shortcut or an option for that? It's annoying to use the mouse to get into this field by hand. Thank you for your help! Chee

  • Windows Access Bridge from C# (WindowsAccessBridge.dll)

    Hello- Does anyone have sample code for how to call into WindowsAccessBridge.dll from C#? I'm able to build, run, and debug through the Ferret and Monkey samples from Visual Studio .NET 2005, but that's native C code. I think I've distilled it down t

  • Rename p2 cards

    Hello all. I'm pretty sure this is a dumb question but i really cannot figure it out and i need to in order to get through the p2cms raylight fcp workflow. I need to rename my p2 card when it mounts on the desktop. It mounts as "no name" and in order