Machine « Socket « Java Network Q&A

Home
Java Network Q&A
1.API
2.bluetooth
3.Client
4.connection
5.Cookie
6.Development
7.Email
8.File
9.ftp
10.http
11.HttpClient
12.https
13.ip
14.Network
15.OS
16.RMI
17.Security
18.Server
19.Socket
20.tcp
21.UDP
22.url
Java Network Q&A » Socket » Machine 

1. Run a program on a specific port of my machine    stackoverflow.com

I need to run a setup on my windows machine with 1 master and 2 workers on the same machine. I have setup the master to run on port 1111 and workers ...

2. Java Login Username on Remote Machine    stackoverflow.com

I'm working on a very simple file sharing program in LAN networks using Java. The software uses Socket ans ServerSocket classes to send and receive to/from machines which user knows the ...

3. Get MAC address on local machine with Java    stackoverflow.com

I can use

ip = InetAddress.getLocalHost();
NetworkInterface.getByInetAddress(ip);
to obtain the mac address, but if I use this code in an offline machine it doesn't work. So, How can I get the Mac address?

4. when local machine address is not available ?    coderanch.com

(This is also for Angela's Confusion ) Why will this not give the name of the local machine.I donot see any typo in this Is it possible that there might be some other condition when the IP address of a stand alone machine is not available to this program. the program is catching exception on my machine. import java.*; import java.net.*; ...

5. how to use telnet to connect to local machine?    coderanch.com

Hi,all, I want to use telnet to connect to my local machine so that I can run my server program locally.I am using DSL to access internet.I tried the host name "localhost" and port "8189",also tried host name "127.0.0.1" and port "8189".But the connection could not be made. Anybody know how? Tks in advance! Frances

6. How to connect to a machine residing behind a proxy server from an outside machine    coderanch.com

I am writing an Internet Application ( Instant Messaging). Clients in the LAN can initialy connect to the Server outside the LAN (using URL class). In the server side I need to keep these client info in a Queue and later the server is to reconnect to each client using new connection. Also Server wants to provide these info to other ...

7. How come I can ping a machine?    coderanch.com

I want to ping a machine on the network, without socket call. Just for a provided IP addr I need to know if machine is on or off. How come I can do it? As well I need to know machine on the other subnet is on or off. waiting earnestly ...

8. socket programming on 98 machine    coderanch.com

9. finding all the host connected to my machine    coderanch.com

Dear programmers, I would like to find all the Host that are connected to my machine. How to do this. I also want to know the status of all the connection. for example I name my m/c as A, which is conected to 5 m/c thro network say B,C,D,E,F. I would like to check the status of the connection periodically, whether ...

10. How to login to a machine ?    coderanch.com

Hello all, I have a set of images on a machine (windows machine) on my Intranet. Let me refer this machine as 'A'. I have an application Hosted on Tomcat on another Machine (windows machine). Let me refer this machine as 'B'. Now i have the Java code to retrieve the images from A to B. But as a pre-requisite i ...

11. Getting all IPs of a Remote multi homed machine    coderanch.com

Hi, I know I can find all the local ip addresses by getting a list of the nics. However I need to do something trickier than that. The server I need to communicate to has two nics and two IPs. However when I get the ip address for that server it always returns the same one, even if that network is ...

12. Geting CPU Usage of a Machine    coderanch.com

14. logging into linux machine through java    coderanch.com

17. testing Reachability of a server machine.    coderanch.com

InetAddress address = InetAddress.getByName("IMDE-D35.interactcrm.com");//InetAddress for my machine on which the program is running InetAddress add = InetAddress.getByName("IMDE-D36.interactcrm.com");//remote machine InetAddress The problem here is that if I disconnect the network cable for "mymachine" the add.isReachable(3000) retuns true. I disconnect or unplug the network cord at runtime as I have placed the code inside a while(true) loop. Can anybody expalin me why the ...

19. Unable to connect to Windows Machine Using FTPClient...    coderanch.com

Hi Everyone, I am trying to connect to a Windows machine from a Sun OS! But when i run the code i get the error: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.(Socket.java:291) at java.net.Socket.(Socket.java:119) at org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:53) at org.apache.commons.net.SocketClient.connect(SocketClient.java:162) at com.b2b.fileTransferWindows.FTPTransferUtilWindows.connectAndLogin(FTPTransferUtilWindows.java:25) at com.b2b.fileTransferWindows.FileTransferWindows.(FileTransferWindows.java:44) at com.b2b.ftp.fileTransfer.FTPFileTransferHandler.main(FTPFileTransferHandler.java:56) I can understand what the error ...

20. question regarding server socket if server socket is other machine    coderanch.com

Hi, I am trying to create a simple chat application that will run on two instances of command promp. If I run the program on single machine there is o problem, it works fine. Now he problem is I am in a LAN enviroment. Suppose there are two machines and i want one machine to run server socket and other to ...

21. MAC addres of remote machine    coderanch.com

We have web servers, and do filter out some traffic base on some criteria. Our concurrent company said that they have filter based on MAC address. By my knowledge MAC address does not go far than first router/bridge. Is there some way to get MAC address of remote machine, or it was just bluff?

22. Why Won't a Simple Socket Program Work when a Windows 7 Machine Acts as Server?    coderanch.com

I don't know if this is a problem for this Java forum, or if my problem is in determining my laptop's IP address, but here goes. I've got a couple of very simple Java files, for the server: import java.net.Socket; import java.net.ServerSocket; import java.io.OutputStream; import java.io.IOException; public class SmSe { public static void main ( String[] arguments) { if (arguments.length == ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.