Pergunta

Here i am using Java to get Screenshot and I am using this code.

Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
            Rectangle r = new Rectangle(d);
            Robot r1 = new Robot();
            BufferedImage bi = r1.createScreenCapture(r);
            ImageIO.write(bi, "png", new File("/home/kishan/NetBeansProjects/JavaApplication1/src/javaapplication1/screen.png"));

but if i have Some Ip address then how to take Screenshot of that particular IP machine.? lets say I have Local Server and Some Node connected to that so how to take that Screen shot for one user of that server from server it self ? any help will be appreciated.

Foi útil?

Solução 2

after doing a lot of research. i conclude this things. What i have done is I have Created A jar which is taking Normal Photo and saving at particular server.

and i am running jar from remote pc so there is no need of taking IP for the PC.

Outras dicas

In your client side its you have to develop that whenever a screen shoot is request from server, client take a screenshot and send it to server

suppose

server send a message to client =="screenshot"

client recieve message and check wheather message is screenshot if yes capture a screenshot and send it to server..

http://www.coderanch.com/t/370601/java/java/RUN-COMMAND-REMOTE-PC

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top