How can I find a specific computer over a closed network?

I have a network of 16 computers, all connected to the same switch, not connected to the Internet. One of the 16 computers has a small Java application that runs on it together with the BlazeDS server (it also listens on the port for the message).

Currently, other 15-inch client computers need to manually enter the IP address of the server where the java application is located. My client application is Adobe Air, so I don’t have the ability to scan the server.

I was thinking of writing a helper application / utility in Java or C ++. At the very least, this application can display IP for the user, who can then enter it into the Air application; sleazy but better than nothing.

I am sure there are some tools that deal with this issue. Any ideas?

+3
source share
5 answers

I would highly recommend using Zeroconf / Bonjour for this, as it simplifies decentralized management "where are the others that I should know about and should know about me"?

The easiest way to do this in Java (and completely inside your own application) is with the jmdns project. http://jmdns.sourceforge.net/

+4
source

"" , IP- , , / .

+2

, nmap. , netblock

$ nmap -P0 10.104.244.200

Starting Nmap 4.20 ( http://insecure.org ) at 2010-02-19 18:02 Eastern Standard Time
Interesting ports on BOSA638992.fmrco.com (10.104.244.200):
Not shown: 1688 closed ports
PORT     STATE SERVICE
25/tcp   open  smtp
80/tcp   open  http
135/tcp  open  msrpc
139/tcp  open  netbios-ssn
371/tcp  open  clearcase
443/tcp  open  https
445/tcp  open  microsoft-ds
2030/tcp open  device2
3389/tcp open  ms-term-serv
MAC Address: 00:17:A4:F3:6D:A7 (Global Data Services)

Nmap finished: 1 IP address (1 host up) scanned in 1.750 seconds

. http://nmap.org/

+1

Adobe AIR 2.0 ( -) . . http://www.adobe.com/devnet/air/flex/quickstart/interacting_with_native_process.html

You can use this tool to call an assistant that you write and submit with your application. This assistant will use some methods to discover your server. For example, zeroConf Networking (called Apple's Bonjour). Your AIR application will use the address received from the assistant to connect to the server.

+1
source

multicast will work - how about http://www.jgroups.org if you are happy with java

+1
source

Source: https://habr.com/ru/post/1733619/


All Articles