OAH
OAH

Reputation: 335

Java server on a machine with two NICs

If I write a java socket server on a machine with two LAN Cards each of which is on a different network like one is on the 10.x.x.x network and the other is on the 192.168.10.x network, is the server going to bind to one of them randomly or it will listen to the incoming requests on both NICs and answer accordingly?

Upvotes: 0

Views: 116

Answers (1)

talex
talex

Reputation: 20455

If you do not specify adapter it will listen on all available adapters.

Upvotes: 3

Related Questions