Results 1 to 6 of 6
Thread: How to access to a LAN computer
- 11-30-2010, 04:32 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 4
- Rep Power
- 0
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
- 11-30-2010, 04:44 AM #2
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
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!
- 11-30-2010, 04:53 AM #3
Member
- Join Date
- Nov 2010
- Posts
- 4
- Rep Power
- 0
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!
- 12-01-2010, 01:02 AM #4
Member
- Join Date
- Nov 2010
- Posts
- 4
- Rep Power
- 0
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?
- 12-01-2010, 07:13 PM #5
Senior Member
- Join Date
- Mar 2009
- Posts
- 552
- Rep Power
- 5
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!
- 12-02-2010, 05:57 PM #6
Member
- Join Date
- Nov 2010
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
how to log data being sent to another computer
By jdizon in forum NetworkingReplies: 4Last Post: 08-10-2010, 12:19 PM -
Default Access (package access) confusion
By gauravrajbehl in forum New To JavaReplies: 1Last Post: 11-18-2009, 10:48 AM -
Can we access sim card from computer
By rajasekharpv in forum Sun Java Wireless ToolkitReplies: 3Last Post: 09-03-2009, 03:22 PM -
I am new, can anyone help me in Computer Vision?
By howardL in forum IntroductionsReplies: 0Last Post: 04-23-2009, 09:37 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks