Andre's Blog

20160717 Connecting the nodes in CISystem

[CISYSTEM] [JAVA] [FIND LOCAL IP ADDRESS]

My plan is to have both options for connecting the nodes in CISystem :

  1. configure pairs of IP address + port number
  2. just configure the port numbers and scan a range of IP addresses

Yes, scanning ports is not nice, but the idea of CISystem is to create a network where the nodes can be replaced on-the-fly and that means you need to scan for nodes anyway.

A node shall only need to know one other node to find the network, all other information will be communicated via the network to all other nodes.

Due to DHCP it would be quite an effort to fix the network configurations every time the router changes the addresses.

This all means, a node should find its own local IP address and tell it to the other nodes of the network.

I have implemented an example to show how this works in Java :

Find Your Local IP Address

This is the complete example code including Gradle build script : zipped example of Find Your Local IP Address

Select where to go ...


The Blog
My Technical Blogs
Projects
Blogs Of Friends
RSS
CV/About
Me