diff --git a/src/org/ice4j/ice/Component.java b/src/org/ice4j/ice/Component.java index 10f8e1d..16209ec 100644 --- a/src/org/ice4j/ice/Component.java +++ b/src/org/ice4j/ice/Component.java @@ -387,7 +387,8 @@ public class Component //pair each of the new remote candidates with each of our locals for(RemoteCandidate remoteCnd : remoteUpdateCandidates) { - if(localCnd.canReach(remoteCnd)) + if(localCnd.canReach(remoteCnd) + && remoteCnd.getTransportAddress().getPort() != 0) { // A single LocalCandidate might be/become connected // to more more than one remote address, and that's ok diff --git a/src/org/ice4j/ice/IceMediaStream.java b/src/org/ice4j/ice/IceMediaStream.java index b2b6d59..94482f8 100644 --- a/src/org/ice4j/ice/IceMediaStream.java +++ b/src/org/ice4j/ice/IceMediaStream.java @@ -385,7 +385,8 @@ public class IceMediaStream for(RemoteCandidate remoteCnd : remoteCnds) { - if(localCnd.canReach(remoteCnd)) + if(localCnd.canReach(remoteCnd) + && remoteCnd.getTransportAddress().getPort() != 0) { CandidatePair pair = new CandidatePair(localCnd, remoteCnd);