• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
netPI Desktop java
#1
Guten Tag, 
Hallo, 


Ich möchte eine Java-Anwendung auf dem Dekstop Hdmi netPi oder Raspberry Pi ausführen.
Das Bild herunterladen: hilschernetpi / netpi-desktop-hdmi funktioniert einwandfrei. Die Konfiguration lautet: Netzwerk -> Bridge 
Portzuweisung: 1099: 1099 und 8080: 8080.

Java wurde über sudo apt install default-jdk installiert.
Eine JAR-Datei ist zu behandeln, auf ihrer letzten ein Agent auf Port 1099 und ein Webdienst auf 8080.


Dieser Agent kann jedoch nicht über Port 1099 kommunizieren.


Bilder im Anhang.


Attached Files Thumbnail(s)
           
  Reply
#2
Well I have seen your screen shots.
My first question is about your java application. This "agent" application - is this a kind of server application and listing to the ports 109 and a client application wants to access it from outside netPI. Is my understanding correct?

You talk about the port 1099 that is not working, but how about the port 8080? I mean you do not specifically say that port 8080 works fine. So what is the status of port 8080? Do you see the web service and the web application? How about this?

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#3
I looked to your sceen shots again. In the output I see that you application is trying to access 172.17.0.3:1099. So your application wants to access another device that is connected to netPI? Is this what your application wants to do?
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#4
(August-12th-2020, 12:48 PM)Armin @ netPI Wrote: Ich schaute wieder auf deine Szenenaufnahmen. In der Ausgabe sehe ich, dass Ihre Anwendung versucht, auf 172.17.0.3:1099 zuzugreifen. Ihre Anwendung möchte also auf ein anderes Gerät zugreifen, das mit netPI verbunden ist? Ist es das, was Ihre Anwendung tun möchte?

2 Agenten (Java-Anwendungen) sollten miteinander kommunizieren
Wir wollen Daten von einer SPS über Node-Red lesen.
Übergabe von Node-Red an den Webdienst und die Agenten.
Agent 1 sendet die Daten an Agent 2
Agent 1 empfängt jedoch auch Daten von Agent 2

Agent 1 kann keine Verbindung zu Agent 2 herstellen. Agent 1 sollte auf dem Netpi ausgeführt werden

(August-12th-2020, 12:48 PM)Armin @ netPI Wrote: Ich schaute wieder auf deine Szenenaufnahmen. In der Ausgabe sehe ich, dass Ihre Anwendung versucht, auf 172.17.0.3:1099 zuzugreifen. Ihre Anwendung möchte also auf ein anderes Gerät zugreifen, das mit netPI verbunden ist? Ist es das, was Ihre Anwendung tun möchte?

Dies ist die IP-Adresse des Containers. Dort soll der Befehl gesendet werden.
  Reply
#5
You say ... two agents. Agent 1 is running inside the desktop container. This agent 1 wants to send data to the agent 2. Which IP address does your netPI have? Which IP address does your agent 2 have?
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#6
(August-12th-2020, 01:19 PM)Armin @ netPI Wrote: Sie sagen ... zwei Agenten. Agent 1 wird im Desktop-Container ausgeführt. Dieser Agent 1 möchte Daten an den Agenten 2 senden. Welche IP-Adresse hat Ihr netPI? Welche IP-Adresse hat Ihr Agent 2?

netpi: 192.168.161.235 
Behälter: 172.....

Agent2: 192.168.160.20

zwischen diesen beiden agenten befindet sich ja VPN Network
  Reply
#7
In the Desktop container running on netPI with IP 192.168.161.235 you can open a standard Linux "terminal" console. What happens if you call "ping 192.168.160.20" in this console? Does the ping command get a response from 192.168.160.20?

And the other direction ... if you call "ping 192.168.161.235" on your Agent2, what happens then? Does the ping command get response back from 192.168.161.235?
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#8
(August-12th-2020, 01:39 PM)Armin @ netPI Wrote: Im Desktop-Container, der unter netPI mit IP 192.168.161.235 ausgeführt wird, können Sie eine Standard-Linux-Terminalkonsole öffnen. Was passiert, wenn Sie in dieser Konsole "ping 192.168.160.20" aufrufen? Erhält der Ping-Befehl eine Antwort von 192.168.160.20?

Und die andere Richtung ... Wenn Sie auf Ihrem Agent2 "ping 192.168.161.235" aufrufen, was passiert dann? Erhält der Ping-Befehl eine Antwort von 192.168.161.235?

beide können sich gegenseitig anpingen und eine Antwort bekommen.
  Reply
#9
This is perfect. So both sides can see each other.

Now back to your application running on Agent 1 192.168.161.235. Which IP address do you enter/setup in your Java application to get communication running with Agent 2 on 192.168.161.235 over port 1099?
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply
#10
(August-12th-2020, 01:52 PM)Armin@netPI Wrote: This is perfect. So both sides can see each other.

Now back to your application running on Agent 1 192.168.161.235. Which IP address do you enter/setup in your Java application to get communication running with Agent 2 on 192.168.161.235 over port 1099?

the adress of the agent 2 : 192.168.160.20
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Desktop LucioFiam 5 2,569 November-5th-2022, 10:33 AM
Last Post: Armin@netPI
  netpi-desktop-hdmi with setting network=bridge tad 13 8,457 June-19th-2020, 12:50 PM
Last Post: tad
  [SOLVED] netPI with Raspbian Desktop firefly 8 5,981 November-28th-2019, 06:01 PM
Last Post: Armin@netPI
  Auflösung in hilschernetpi/netpi-desktop-hdmi ändern dennis 5 4,382 November-15th-2018, 11:28 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)