Network Connections

I have a static IP 47.21.154.146 and two computers which I wish to talk to each other. The two IPs are 198.168.1.5 and 198.168.1.6.

How do I do it. For example ls from one computer to the other.

TIA

Sorry? Who has 47.21.154.146, and who has 198.168.1.x?

Rudic -

Thanks.

47.21.154.146  

Public IP address of network

198.168.1.x

Addresses of the two computers on the network.

meow613

If they are on the same network segment, then the public IP address is not relevant. It does leave a few questions though:-

  • What sort of conversation would you like them to have?
  • What OS are they running?
  • Can you share the output from ifconfig -a or the equivalent for their OS?

Kind regards,
Robin

198.168.1.x is an address from the public internet as well (belongs to a company in Canada).
I guess you mean a private LAN (192.168.x.x)? And the ls command? You'll need to login on the "remote" node and the issue the command you want to run.
To give you any meaningful advice, there's way more detailed info necessary, as rbatte1 already pointed out!

Robin and RudiC

Please inform me as to what you need and I will try to provide it

meow613

---------- Post updated at 02:02 PM ---------- Previous update was at 12:59 PM ----------

Robin and RudiC -

Hope this is a good start

root@server1:/# ifconfig -a

eth0      Link encap:Ethernet  HWaddr 00:23:ae:27:b9:ec  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1786906 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1786906 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:379353053 (361.7 MiB)  TX bytes:379353053 (361.7 MiB)

wlan0     Link encap:Ethernet  HWaddr 00:24:2c:49:d1:d8  
          inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:2cff:fe49:d1d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:534028 errors:0 dropped:0 overruns:0 frame:8228511
          TX packets:630709 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:277068938 (264.2 MiB)  TX bytes:97055053 (92.5 MiB)
          Interrupt:17 Base address:0xc000 

meow613

---------- Post updated at 04:29 PM ---------- Previous update was at 02:02 PM ----------

Sorry -

I forgot to post the results from the second computer.
Here they are.

root@client1:/home/client1# ifconfig
eth0      Link encap:Ethernet  HWaddr d4:be:d9:32:aa:10  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:20 Memory:e2e00000-e2e20000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:27 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3077 (3.0 KiB)  TX bytes:3077 (3.0 KiB)

wlan0     Link encap:Ethernet  HWaddr 8c:70:5a:2b:a3:30  
          inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::8e70:5aff:fe2b:a330/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:184 errors:0 dropped:0 overruns:0 frame:0
          TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:52187 (50.9 KiB)  TX bytes:11798 (11.5 KiB)

meow613

---------- Post updated at 05:40 PM ---------- Previous update was at 04:29 PM ----------

Robin and RudiC -

Some answers to your questions -

Client/server Code and data

Debian 8.5

meow613

Thanks for the information. Regarding the conversation that you want them to have, we still need to know more about what "Client/server Code and data" is though. Is this to:-

  • copy data from one to the other
  • drive an application on A that uses data on B
  • drive an application from A that runs on B
  • something else?

We could discuss NFS, FTP, SFTP, Telnet, Remote Shell, Secure Shell, Samba, NetCat, IP sockets, OBDC, etc. etc. but we need to know what you actually want to do with these servers.

Can you explain their purpose?

Kind regards,
Robin

1 Like

Robin & Rudic -

Thanks.

something else?

C = Client
S = Server

This is as POS system. So that no one can steal the code or databases, all the data and programs will reside on S. When C starts the POS he/she will be transferred to S.
Meow613

Well, I'm still not much further on. Do you want the processing to run on the POS or the server?

Running on the POS
Perhaps NFS or Samba sharing the files to the POS. You have to consider security so no-one else can pick it up.

Running on the server
The POS can send a connection to the server to do the work then return. You still have to consider security though on how you authenticate the incoming connection.

Are you worried about the POS being physically removed or just hacked? Either way, it might still be possible to access the code & data by mimicking what the POS does routinely.

This could be a major design project in the making, but you know your business far better than us, so you need to clarify what you want to do and then we can see how we can help. What does your POS do so far?

Robin