Results 1 to 6 of 6
  1. #1
    cjavierm is offline Member
    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    Lightbulb How to access to a LAN computer

    Hi everyone,

    Here is my problem, i would like to know what Java class I can import to program the access to other computer which is in my LAN connection.

    For example if I want to save a file in my brothers computers (which is in my house) I would like to know what function or class of the Java Library could allows me to to that.

    pd: next step will be to show it on a java view :D


    Thanks a lot,
    Javier

  2. #2
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    That would be Socket Programming. Sockets are the basis for connecting to any other computer.

    By showing it on a Java View, what do you actually mean?
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  3. #3
    cjavierm is offline Member
    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    Default

    Thanks! I will take a look to that link tomorrow (work first hah). In case of doubts I will write you again xD

    Oh.. Java view .. I was trying to say that I will try to use the java.swing class to write the computer address and show some confirmation of the succeded transfered file... Nevermind hahah

    The important thing was the link you send me xD. Thanks again!

  4. #4
    cjavierm is offline Member
    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    Default

    Hi, I copy the code which is in this link Reading from and Writing to a Socket (The Java™ Tutorials > Custom Networking > All About Sockets)

    I am catching this error: System.err.println("Couldn't get I/O for "
    + "the connection to: PABLO-PC.");

    I don´t know why because i can acces to PABLO-PC by the network.. but in the code it has that problem. How can i fix that?

  5. #5
    Singing Boyo is offline Senior Member
    Join Date
    Mar 2009
    Posts
    552
    Rep Power
    6

    Default

    Do you have a server running on 'PABLO-PC'? If there's no server running on the port you're trying to connect to, on the computer you're trying to connect to, you won't be able to connect.
    If the above doesn't make sense to you, ignore it, but remember it - might be useful!
    And if you just randomly taught yourself to program, well... you're just like me!

  6. #6
    cjavierm is offline Member
    Join Date
    Nov 2010
    Posts
    4
    Rep Power
    0

    Default

    I think I used the wrong port to acces to PABLO-PC´s. I will try using the FTP port.

Similar Threads

  1. how to log data being sent to another computer
    By jdizon in forum Networking
    Replies: 4
    Last Post: 08-10-2010, 12:19 PM
  2. Default Access (package access) confusion
    By gauravrajbehl in forum New To Java
    Replies: 1
    Last Post: 11-18-2009, 10:48 AM
  3. Can we access sim card from computer
    By rajasekharpv in forum Sun Java Wireless Toolkit
    Replies: 3
    Last Post: 09-03-2009, 03:22 PM
  4. I am new, can anyone help me in Computer Vision?
    By howardL in forum Introductions
    Replies: 0
    Last Post: 04-23-2009, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •