How to create two loopback interfaces
Hello everybody,
I’d like to ask you how to create two loopback interfaces (like the 127.0.0.0) for local communications between applications. It would be important if they don´t disappear when the pc is rebooted. Many thanks for your help All the best Ricardo Sousa |
Most distros of Linux require interface lo in order to come up. Since the loopback interface returns all packets to the sender, you can't use it for communications.
Code:
ifconfig lo |
Quote:
What I'm curious about is why the OP needs two of them. All you need is one interface and a port number to open up a TCP connection. If you have two processes running, then use two different ports. |
There may be a few ways to go. At first I'd think a hosts file entry. Never tried it.
You can easily create private IP addresses on almost all newer nic's so that you'd have it with the normal IP and an alias. VM's use a virtual network and I guess one might set up something like that. |
All times are GMT -5. The time now is 03:57 PM. |