check = _check;
http_test = _http_test;
if ( http_test ){
HTTPNetworkManager net_man = HTTPNetworkManager.getSingleton();
if ( net_man.isHTTPListenerEnabled()){
use_incoming_router = _port == net_man.getHTTPListeningPortNumber();
}else{
use_incoming_router = false;
}
if ( use_incoming_router ){
if ( !net_man.isEffectiveBindAddress( bind_ip )){
net_man.setExplicitBindAddress( bind_ip );
bind_ip_set = true;
}
}
}else{
TCPNetworkManager net_man = TCPNetworkManager.getSingleton();
if ( net_man.isTCPListenerEnabled()){
use_incoming_router = _port == net_man.getTCPListeningPortNumber();
}else{
use_incoming_router = false;
}
if ( use_incoming_router ) {
if ( !net_man.isEffectiveBindAddress( bind_ip )){
net_man.setExplicitBindAddress( bind_ip );
bind_ip_set = true;
}
//test port and currently-configured listening port are the same,