Skip to main content
Commonmark migration
Source Link

Yes

#Yes ItIt is easy to serve it.

No

#No ButBut harder to get the client to use it.

An alternative

#An alternative HoweverHowever because you told me why you are doing it, I have another solution.

You want several web-servers to serve to only the local machine, but not have conflicts of port. It may also be nice if they all used the same port number.

Loopback addresses are 127.0.0.0/8 That is 127.x.x.x not just 127.0.0.1.

Therefore use a different IP address for each server. E.g. 127.0.0.2, 127.0.0.3 ...

#Yes It is easy to serve it.

#No But harder to get the client to use it.

#An alternative However because you told me why you are doing it, I have another solution.

You want several web-servers to serve to only the local machine, but not have conflicts of port. It may also be nice if they all used the same port number.

Loopback addresses are 127.0.0.0/8 That is 127.x.x.x not just 127.0.0.1.

Therefore use a different IP address for each server. E.g. 127.0.0.2, 127.0.0.3 ...

Yes

It is easy to serve it.

No

But harder to get the client to use it.

An alternative

However because you told me why you are doing it, I have another solution.

You want several web-servers to serve to only the local machine, but not have conflicts of port. It may also be nice if they all used the same port number.

Loopback addresses are 127.0.0.0/8 That is 127.x.x.x not just 127.0.0.1.

Therefore use a different IP address for each server. E.g. 127.0.0.2, 127.0.0.3 ...

Source Link
ctrl-alt-delor
  • 28.8k
  • 11
  • 66
  • 113

#Yes It is easy to serve it.

#No But harder to get the client to use it.

#An alternative However because you told me why you are doing it, I have another solution.

You want several web-servers to serve to only the local machine, but not have conflicts of port. It may also be nice if they all used the same port number.

Loopback addresses are 127.0.0.0/8 That is 127.x.x.x not just 127.0.0.1.

Therefore use a different IP address for each server. E.g. 127.0.0.2, 127.0.0.3 ...