[JS][CS3] Socket and IP Addresses

First, let me say that I'm developing an Illustrator CS3 solution, but the Bridge forum seems to be more alive, and the issue seems to be common for all CS apps.
I need to somehow obtain and then store in a text file an identifier of a computer accessing a shared file placed on a LAN and then use it for establishing a simple chat communication. I thought I'd store the IP address, but how can I effectively obtain it? Socket class does not seem to have a localAddress property. I thought perhaps using the ExternalObject with calls to a common Win DLL? But I lack the how-to. Could anyone shed some light on me?
The reason I'm mentioning 'socket' in the subject is, that I want to establish a simple chat-based notification between the users, sort of:
- "Hi there, I'm sorry, but Bob is using this file now. Please try again later"
- "Hey, Bob, Anna wanted to access the file 'xyz' but apparently you are still using it. If you don't need it anymore, hit OK to release the file."
Any ideas how to do that?

First, let me say that I'm developing an Illustrator CS3 solution, but the Bridge forum seems to be more alive, and the issue seems to be common for all CS apps.
I need to somehow obtain and then store in a text file an identifier of a computer accessing a shared file placed on a LAN and then use it for establishing a simple chat communication. I thought I'd store the IP address, but how can I effectively obtain it? Socket class does not seem to have a localAddress property. I thought perhaps using the ExternalObject with calls to a common Win DLL? But I lack the how-to. Could anyone shed some light on me?
The reason I'm mentioning 'socket' in the subject is, that I want to establish a simple chat-based notification between the users, sort of:
- "Hi there, I'm sorry, but Bob is using this file now. Please try again later"
- "Hey, Bob, Anna wanted to access the file 'xyz' but apparently you are still using it. If you don't need it anymore, hit OK to release the file."
Any ideas how to do that?

Similar Messages

  • Data socket and broadcast address

    it's posible to use broadcast or multicast address to get resources in a local net?, in order not to specify the exact ip address where the resource is located.
    many thanks in advance
    Mikel Eguiraun

    Hi,
    you can broadcast using broadcast IP addresses (see link):
    http://www.freesoft.org/CIE/RFC/922/10.htm
    A broadcast is a data packet that is destined for multiple hosts. Broadcasts can occur at the data link layer and the network layer. Data-link broadcasts are sent to all hosts attached to a particular physical network. Network layer broadcasts are sent to all hosts attached to a particular logical network. The Transmission Control Protocol/Internet Protocol (TCP/IP) supports the following types of broadcast packets:
    •All ones—By setting the broadcast address to all ones (255.255.255.255), all hosts on the network receive the broadcast.
    •Network—By setting the broadcast address to a specific network number in the network portion of the IP address and setting all ones in the host portion of the broadcast address, all hosts on the specified network receive the broadcast. For example, when a broadcast packet is sent with the broadcast address of 131.108.255.255, all hosts on network number 131.108 receive the broadcast.
    •Subnet—By setting the broadcast address to a specific network number and a specific subnet number, all hosts on the specified subnet receive the broadcast. For example, when a broadcast packet is set with the broadcast address of 131.108.4.255, all hosts on subnet 4 of network 131.108 receive the broadcast.
    Also on the next link you can find multicast addresses explanation:
    http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/ipmulti.htm#wp1020564
    You can find several examples of UDP Multicast and broadcast on the Examples of labview (go to Help
    -> Find examples -> Search  and then you write UDP).
    Normally broadcasting and multicasting use that protocol (UDP) due to the fact it do not need an ACK in the communication. If you plan to use TCP then you will need a connection for each computer (IP). There are also examples with labview of TCP with multiple connections.
    Hope that info helps u,
    Regards,
    Jaime Cabrera
    NI Applications Engineering Spain

  • Sockets and thread communication multiplexing?

    Hello,
    I need to implement a server which will have a maximum of 10 clients connected.
    I wanted to go for classic blocking I/O because I won't have much clients.
    My problem is that even if I accept() some sockets and then create a thread for each socket,
    then I still need to communicate some data to the other threads, problem is that I am blocked
    on the read() operation, how could I address this problem?
    I mean, lets say I am thread1 and blocked on read() on my socket, now thread7 wants to tell
    me something like a chat message coming from client he handles, how could thread7 manage
    to wake thread1 and send him a message somehow?
    I do not want to deal with NIO stuff if possible because I do not need to scale, I just have a
    problem because I am stuck on the read.
    I will run on Windows.
    Thanks for help.
    Edited by: Marzullo on Jul 15, 2010 1:05 PM

    Fully answered in [your other thread|http://forums.sun.com/thread.jspa?threadID=5445070&messageID=11020688#11020688].
    Please don't multipost, as it can lead to people wasting their time repeating others' answers.

  • How do I change my username and email address?

    I am unable to find where to change my iTunes Store username and email address. There's nowhere on this site to be able to change it. Can I only change it through iTunes?

    You can edit your Apple ID(which is your iTunes Store account name) via Apple's My Apple ID website https://appleid.apple.com/com by following these steps:
    1.) Click "Manage your account" on the right hand side of the page.
    2.) Click edit next to your Apple ID and Primary Email Address.
    3.) Edit your account name to the desired email address.
    4.) Click Save Changes.
    Hope this helps.

  • How do I change password and email address?

    I cannot change my password and email address because I am based in the UK and not in the US. When I try to make a change and save it, it says I have made a mistake on the fields marked red and asks me to complete the parts in red including: the state I live in and because I am not in a state it doesn't allow me to change my details. It also has a problem with my country's telephone code. Does anyone know how to resolve this?

    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/

  • Need help on Socket and HTTP

    Hi,
    I need help ... please ... I have to use socket and not HTTPURLConnection
    I try to connect with a socket to a web server (apache2) and request one page but two times.
    The first time it works well but the second one it doesn't ... I get a null message.
    Why ?
    Does the server close the socket as soon as the page is sent ?
    If it doesn't how I can continue sending and receiving data on the same socket ?
    Here is my code:
    package test;
    import java.net.*;
    import java.io.*;
    public class Test
    private String laRequete = new String(
    "POST http://localhost:5577/Test/ HTTP/1.0\r\n"+
    "Host:localhost:5577\r\n"+
    "\r\n");
    PrintWriter laSortie;
    BufferedReader lEntree;
    Socket laSocketTCP;
    public Test()
    String tmp;
    try
    laSocketTCP = new Socket("localhost", 5577);
    laSortie = new PrintWriter(laSocketTCP.getOutputStream());
    lEntree = new BufferedReader(new InputStreamReader(laSocketTCP.getInputStream()));
    laSortie.println(laRequete);
    laSortie.flush();
    // Premier essai OK
    System.out.println(lEntree.readLine());
    while((tmp = lEntree.readLine()) != null)
    System.out.println(tmp);
    // Second essai => Not OK
    laSortie.println(laRequete);
    laSortie.flush();
    System.out.println(lEntree.readLine());
    while((tmp = lEntree.readLine()) != null)
    System.out.println(tmp);
    catch (Exception e)
    e.printStackTrace();
    public static void main(String args[])
    Test tp = new Test();
    Here is the result of the execution
    HTTP/1.1 200 OK
    Date: Wed, 29 Sep 2004 08:35:35 GMT
    Server: Apache/2.0.51 (Win32)
    Last-Modified: Wed, 29 Sep 2004 08:27:57 GMT
    ETag: "23a46-9a-56c93f9a"
    Accept-Ranges: bytes
    Content-Length: 154
    Connection: close
    Content-Type: text/html; charset=ISO-8859-1
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> Index Test 1 </TITLE>
    </HEAD>
    <BODY>
    Test 1
    </BODY>
    </HTML>
    null
    Thanks, bye.

    Send an HTTP 1.1 request instead of a 1.0 request.
    HTTP 1.0 does not support keeping the connection open, so yes, the server closes the connection.
    Dave.

  • Conflict between socket and RMI

    Hi
    I wrote a program in client-server using socket and it was fine. I also wrote a client-server program using RMI. Fine as well. But after I connected the client-server using socket (open socket, send-receive messages, close socket), then use RMI. I got java.rmi.NotBoundException.
    Would anyone have a look and provide your feedback please? Thanks.
    big J
    *****************this is Server.java ***************************
    package single;
    import java.io.*;
    import java.rmi.Naming;
    import java.rmi.RemoteException;
    import java.net.*;
    import java.rmi.*;
    public class Server
    extends Thread {
    public static final int SOCKETPORT = 5555;
    private String serverName;
    public Server() throws IOException {
    System.out.println("*** socket opened ***");
    serverName = new String("localhost");
    ServerSocket serverSocket = new ServerSocket(SOCKETPORT);
    Socket socket = serverSocket.accept();
    InputStream is = socket.getInputStream();
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is));
    System.out.println(bufferedReader.readLine());
    OutputStream os = socket.getOutputStream();
    PrintWriter printWriter = new PrintWriter(new OutputStreamWriter(os), true);
    printWriter.println("from server");
    os.close();
    is.close();
    socket.close();
    System.out.println("*** socket closed ***");
    public void runServer() {
    System.out.println("*** start of run():RMI ***");
    System.setSecurityManager(new SecurityManager());
    try {
    RMIInterfaceImpl rMIInterfaceImpl = new RMIInterfaceImpl();
    Naming.bind("//" + serverName + ":9999/RMIInterface", rMIInterfaceImpl);
    catch (RemoteException ex) {
    catch (MalformedURLException ex) {
    catch (AlreadyBoundException ex) {
    System.out.println("*** end of run():RMI ***");
    public static void main(String args[]) throws Exception {
    Server server = new Server();
    server.runServer();
    ******************this is Client.java **************************
    package single;
    import java.io.*;
    import java.net.*;
    import java.rmi.Naming;
    public class Client {
    private String serverName;
    private final static int SOCKETPORT = 5555;
    public Client() throws IOException {
    serverName = new String("localhost");
    Socket socket = new Socket(serverName, SOCKETPORT);
    OutputStream os = socket.getOutputStream();
    PrintWriter printWriter=new PrintWriter(os, true);
    printWriter.println("from client");
    InputStream is = socket.getInputStream();
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is));
    System.out.println(bufferedReader.readLine());
    is.close();
    os.close();
    socket.close();
    public void runClient() throws Exception {
    System.out.println("*** start of runClient():RMI ***");
    System.setSecurityManager(new SecurityManager());
    RMIInterface rMIInterfaceImpl = (RMIInterface) Naming.lookup(
    "//" + serverName + ":9999/RMIInterface");
    String str = rMIInterfaceImpl.print();
    System.out.println(str);
    rMIInterfaceImpl.serverSide();
    System.out.println("*** end of runClient():RMI ***");
    public static void main(String args[]) throws Exception {
    Client client = new Client();
    client.runClient();
    ***************** this is RMIInterface.java ***********************
    package single;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    interface RMIInterface
    extends Remote {
    String print() throws RemoteException;
    void serverSide() throws RemoteException;
    ********************* this is RMIInterfaceImpl.java ***************
    package single;
    import java.rmi.RemoteException;
    import java.rmi.server.UnicastRemoteObject;
    public class RMIInterfaceImpl
    extends UnicastRemoteObject
    implements RMIInterface {
    public RMIInterfaceImpl() throws RemoteException {}
    public String print() {
    return new String("hello world");
    public void serverSide(){
    System.out.println("this should appear in serverside");

    I think you have a timing problem between your client and server. As soon as your client and server programs have finished their socket communication, they will both do their "runServer"/"runClient" methods. If the client attempts to lookup the server before the server has registered itself via Naming.bind(), I would expect that's why you're getting a NotBoundException in the client.
    You probably wouldn't use the design of your test client/server for something significant, but a quick and dirty way to make this work might be to have the client call Thread.sleep() for a few seconds before trying to do the lookup.

  • Migrate WSUS server from 2003x86 to 2008x64, new hardware, use same name and IP address?

    Searching through the WSUS forums and reading the TechNET migration documentation, I have bits and pieces of information to make this a smooth transition...I think. I have a plan in mind but
    would like the communities input on what I am thinking before moving forward and having it blowup in my face :). <o:p></o:p>
    I have the following currently:<o:p></o:p>
    A single WSUS 3.0 SP2 server, running on Server Win2003x86, using the default WID (susdb.mdf) on the same server. I have SQL 2005 Express installed on this server as well for other services
    but this has no bearing on the WID correct?<o:p></o:p>
    What I would like to do:<o:p></o:p>
    I have a new server (a much better one) that I would like to move WSUS on to, that will be running Server Win2008x64 (I have to setup first). <o:p></o:p>
    Steps that I would like to follow:<o:p></o:p>
    1. I will go through and setup this new server with all M$ updates etc... under a new name (ex. wsusnew) and DHCP acquired IP address and then power it down. <o:p></o:p>
    2. Get on my current WSUS server and backup all current WSUS settings, groups, DB etc... to a network location for temporary storage. Then power it down.<o:p></o:p>
    3. Delete the current WSUS server computer object in AD, DNS entry I will leave because my intension is to give the same IP address to the new WSUS server.<o:p></o:p>
    4. Start the new server, static assign the IP address from the old WSUS server to this new server and then change the name of (wsusnew) to the old servers name, which should be ok sense I deleted
    the AD object in step 3.<o:p></o:p>
    5. After the obvious restart, the new server will have the same name and IP address as the old server. <o:p></o:p>
    6. Now that the new server is up (with same settings name/IP as old server), I will then go through and install the WSUS role on the server and restore my WSUS information.<o:p></o:p>
    Questions:<o:p></o:p>
    1. Step 2 above, is it possible to do this, without making replica servers? I kept reading about this as I was researching doing this, I would rather just copy the DB and folders and simply
    put them in-place on the new server.<o:p></o:p>
    2. Step 6 above, restoring of the data, what is the proper way to do this in the scenarioI described? <o:p></o:p>
    Thank you to anyone who can provide me some information.
    Jeff

    Thank you for the reply, I will follow and let you know. Proabably be next week sometime before I'm able to try though. So look for a reponse then. Thank you again.
    Jeff
    OR...
    You can use the much more simple, much more reliable, and much more proven method of:
    Install new server as a replica of the old.
    Replicate.
    Configure new server as upstream server.
    Point clients to new server.
    Turn off old server after all clients have redirected to the new server.
    For everybody that has tried the backup/restore the database procedure described above, they have encounted complications of one form or another.
    WSUS has a built-in and fully supported comprehensive replication capbility. use it! :-)
    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Microsoft MVP - Software Distribution (2005-2012)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin

  • Delivery report shows status of Pending for external address. Email sent to both internal and external addresses.

    We have an Exchange 2013 on-premise server and seem to have an issue with emails sent to internal and external users at the same time.
    The issue came to light because someone sent an email to 44 recipients, of which one was internal. None of the external recipients received the email. I checked the delivery report in the EAC and found the internal email marked as 'Delivered' and all of
    the external ones marked as 'Pending'. I checked the queues and there were none. I did some testing and sent an email to just one of the external addresses on the list, it arrived. I tried sending the email again to all of the recipients, the external ones
    all showed 'Pending'. I tried it again, but this time excluded the internal email address and all of the 43 external emails were immediately delivered.
    So it seems that the issue only arises when we are sending to both internal and external addresses.
    I then tried a test email to one internal address and one external address. The Delivery report says that the internal address was delivered immediately, while the external address is 'Pending' and gives more information saying: 'Message delivery is taking
    longer than expected. There may be system delays. For more information, contact your helpdesk.'. To add further mystery to this, the email was actually delivered.
    So, I have two concerns:
    First is seems that some emails sent both internally and externally are only arriving internally. This is a huge problem because I don't know how many have been affected. There may be many lost emails we don't know about.
    Second, it looks like I can't trust the delivery report. It says pending for some emails which didn't arrive, but it also says pending for some which did arrive. That is no good at all.
    For info the server is running Windows Server 2012. I have run a Microsoft Update to check if there are any to apply and the only Exchange one is a spam filter update, which I doubt has any bearing but I will apply when I get chance.

    Hi Neil,
    According to the description, I find a related KB on Exchange 2010:
    https://support.microsoft.com/kb/2694474?wa=wsignin1.0
    It has the similar situation as yours.
    This issue occurs because a function in a message tracking component tries to obtain the information for the recipient instead of the external recipient.
    Please try to upgrade to the latest Exchange update to check whether this issue can be solved.
    Also please check whether Throttling has been set.
    Please run "Get-TransportService | fl" to check the MaxOutboundConnections parameter value.
    More details to see:
    Message throttling 
    http://technet.microsoft.com/en-us/library/bb232205(v=exchg.150).aspx
    Thanks
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Mavis Huang
    TechNet Community Support

  • Billing and delivery address to be displayed in PO

    Dear Gurus,
                          Here client requirement is as follows : There are three plants in three different places- Chennai, Bangalore and Hyderabad. Client is creating PO from Chennai plant and they want the material to be delivered in Bangalore plant. They want this to be displayed( billing and delivery address) in the purchase order. Kindly suggest me how to map this scenario.Thank you.

    Hi,
    For delivery adress you can use the subscreen for delivery adress in the item of the PO.
    Por billing adress, if it's not the same that the adress for the center, you can do a subroutine for the form (Z)MEDRUCK for the company of these center, of you can create a partner 'Billing adress' and write it in form with a subroutine (Z)MEDRUCK.
    I hope this helps you
    Regards,
    Eduardo

  • Session ID and IP Address

    Hi Experts,
    In BIEE 11.1.1.6.11
    I can view the Session ID and IP Address through Administration-> Manager Session ,
    I believe both of them must be stored related file in local machine .
    But I do not know which files. Could you please tell me how to find them?  Thanks.

    hang on, if I made my session facade statefull, and the first method you called was login...
    all the other methods already have boilerplate code to wrap exceptions, not really a big deal to add checkIsLoggedIn();
    public otherBusinessMethod1() throws ApplicationException, RemoteException{
      try{
        checkIsLoggedIn();
        do stuff...
      catch(Exception e){
        throw wrapException(e);
    }This would work right?
    I realise this has a scalability problem cause you're storing state on the server. I wonder how much of a problem.
    I guess the other option is to pass the login info through each time
    public businessMethod1(LoginInfo loginInfo){
      try{
        logIn(loginInfo);
        do stuff...
      catch(Exception e){
        throw wrapException(e);
    }Or am I barking up the wrong tree altogether?

  • How can I migrate from Outlook 2011 to iCal and Apple Address Book in Mavericks now that synching is no longer possible?

    Now that I am on Mavericks and no longer able to sync between my iPhone/iPad and Outlook 2011 on my MacBook Pro, I'm finally taking the leap (which I should have done long ago) and abandoning Outlook 2011 all together (doesn't help that Outlook now prompts me to rebuild by Identity multiple times per day). I am hoping to export from Outlook to iCal, Address Book, etc, but I would love it if someone could check my steps.
    Delete iCal and Apple Address Book content -- Because I have old data in iCal and Address Book (that was synched before I upgraded to Mavericks), I planned to delete this data as follows:
    Manually deleting my multiple calendars in the iCal app
    Go to Go>Home>Library>Calendars and drag "Calendar Cache" to trash
    Go to Go>Home>Library>Caches and drag "com.apple.iCal" and "com.apple.AddressBook" to the trash
    Go to Go>Home>Library>Application Support and drag "Address Book" to the trash
    Export Outlook 2011 Calendars to iCalIs there a file format that I can use to export from Outlook 2011 and then import into iCal? I will use this file format to individually export each of my calendars from Outlook 2011 and import them into iCal.
    Export Outlook 2011 Contact List to Apple Address BookIs there a file format that I can use to export from Outlook 2011 and then import into Apple Address Book?
    Suggestions would be greatly appreciated.

    Hi acs4055,
    As per your query I found a relevant solution for resolving this,  actually I haven’t tried the steps you wrote here in your query.  But I found a solid key answer for exporting from Mac OS X Mavericks (10.9.1) Outlook 2011 to iCal for Apple mail. This is possible through Drag and Drop method via this you can undoubtedly migrate Outlook 2011 Calendar to ical format.
    Hope it will assist you and you will be able to attain a desired solution.

  • Can I sync two iPads with different users and email addresses on the same computer

    Can I sync two IPads with different users and email addresses on the same computer.

    yes, just make sure you turn off auto-sync to keep everything organized before you try syncing
    on a pc
    edit > preferences > devices - 'prevent ipads, iphones, and ipods from syncing automatically' needs to be checked

  • Office 2013 and Groupwise, Address book issues

    Having issues with workstations running Win7 and Office 2013. If you open the mail settings under the control panel only the Outlook address book is listed. Frequent contacts doesn't populate either in Groupwise and no address books are listed as available. Any fixes for this? Groupwise 8 running on NW 6.5

    Originally Posted by drettagliata
    Having issues with workstations running Win7 and Office 2013. If you open the mail settings under the control panel only the Outlook address book is listed. Frequent contacts doesn't populate either in Groupwise and no address books are listed as available. Any fixes for this? Groupwise 8 running on NW 6.5
    We have the same problem, aparently is related with outlook. When we uninstalled office 2013, the adress book is listed and works properly.

  • Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can't see a symbol for address book.

    Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can;t see a symbol for address book.

    Where are addresses kept on MAIL?  I don;t like the new format at all. Frances
    Begin forwarded message:
    From: Frances Topping <[email protected]>
    Subject: Re: - Old computer I had is OSX Snow Leopard with Entourage. New one is OSX Mavericks. Using Mail where are my addresses and old address book. Transferred old computer backup by Time Machine and other things work? Can't see a symbol for address book.
    Date: August 25, 2014 at 9:46:01 AM EDT
    To: discussions-replies <[email protected]>
    Old Entourage is POP and new Mavericks MAIL  is IMAP I believe. I don;t know how to export in the forms you mention. Frances

Maybe you are looking for

  • Cubes are not visible in Voyager cube browser

    Hi After following the steps below: 1. Login to Central Mangagement Console. 2. Click on Voyager Connection to see the list of avaliable connection. 3. Click on New button(present below the manage menu) to create a connection. 4. Give name and chose

  • Where to see the PI's that trigger the 32-bit Bridge

    In a Mainstage concert, the 32-bit bridge keeps opening, but I can't figure out which PI's are triggering it. I've eliminated the one easy possibility (NI's Electric Piano) and any instance of Waves PI's. Otherwise, I'm using Omnisphere, Kontakt and

  • Reader add-on will not stay in IE 10

    I recently upgraded from IE 9 to IE 10.  I cannot open .pdf files in IE 10, although I can save them to my desktop and open them from there.  Firefox opens .pdf files. I went to manage add-ons in IE 10, and Reader was not there.  I re-installed Reade

  • ITunes suddenly refuses to open

    I'm looking for some help with my iTunes. I have windows 7 and have been running iTunes on it for months now. Just today I attempted to open iTunes and a few messages came up saying that I'm missing CoreVideo.dll, CoreAudioToolbox.dll, that there are

  • NEXT PREVIOUS LAST FIRST PROBLEM

    hi to all, i get this error when i press next,previous,last first button... "Error.. you need to insert first item" and another is when it work the last and first its empty in all the text item..... my code is.. Next_REcord for next button previous_r