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 ... |
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 ... |
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?
|
(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.*; ... |
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 |
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 ... |
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 ... |
|
|
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 ... |
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 ... |
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 ... |
|
|
|
|
|
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 ... |
|
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 ... |
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 ... |
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? |
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 == ... |