Make sure that the port is forwarded correctly/unblocked by your NAT/Firewall
switch (CVCollision)
{
case "C":
switch (lastSound)
{
case "L":
snd.SoundLocation = "./sounds/clearleft.wav";
break;
case "R":
snd.SoundLocation = "./sounds/clearright.wav";
break;
case "I":
snd.SoundLocation = "./sounds/clearin.wav";
break;
case "O":
snd.SoundLocation = "./sounds/clearout.wav";
break;
case "M":
snd.SoundLocation = "./sounds/clear.wav";
break;
default:
snd.SoundLocation = "./sounds/clear.wav";
break;
}
snd.Stop();
snd.Play();
lastSound = "C";
break;
case "L":
nbRand = random.Next(0, 2);
sRand = "";
if (nbRand == 1)
sRand = "2";
if (CVTurn == "N"[B] || OutsideInside == false[/B])
{
snd.SoundLocation = "./sounds/left" + sRand + ".wav";
lastSound = "L";
}
if (CVTurn == "L")
{
snd.SoundLocation = "./sounds/inside" + sRand + ".wav";
lastSound = "I";
}
if (CVTurn == "R")
{
snd.SoundLocation = "./sounds/outside" + sRand + ".wav";
lastSound = "O";
}
snd.Stop();
snd.Play();
break;
case "R":
nbRand = random.Next(0, 2);
sRand = "";
if (nbRand == 1)
sRand = "2";
if (CVTurn == "N"[B] || OutsideInside == false[/B])
{
snd.SoundLocation = "./sounds/right" + sRand + ".wav";
lastSound = "R";
}
if (CVTurn == "L")
{
snd.SoundLocation = "./sounds/outside" + sRand + ".wav";
lastSound = "O";
}
if (CVTurn == "R")
{
snd.SoundLocation = "./sounds/inside" + sRand + ".wav";
lastSound = "I";
}
snd.Stop();
snd.Play();
break;
case "M":
snd.SoundLocation = "./sounds/middle.wav";
lastSound = "M";
snd.Stop();
snd.Play();
break;
switch (CVCollision)
{
case "C":
switch (lastSound)
{
case "L":
snd.SoundLocation = "./sounds/clearleft.wav";
break;
case "R":
snd.SoundLocation = "./sounds/clearright.wav";
break;
case "I":
snd.SoundLocation = "./sounds/clearin.wav";
break;
case "O":
snd.SoundLocation = "./sounds/clearout.wav";
break;
case "M":
snd.SoundLocation = "./sounds/clear.wav";
break;
default:
snd.SoundLocation = "./sounds/clear.wav";
break;
}
snd.Stop();
snd.Play();
lastSound = "C";
break;
case "L":
nbRand = random.Next(0, 2);
sRand = "";
if (nbRand == 1)
sRand = "2";
if (CVTurn == "N"[B] || OutsideInside == false[/B])
{
snd.SoundLocation = "./sounds/left" + sRand + ".wav";
lastSound = "L";
}
if (CVTurn == "L" [U][B]&& [/B][B]OutsideInside == true[/B][/U])
{
snd.SoundLocation = "./sounds/inside" + sRand + ".wav";
lastSound = "I";
}
if (CVTurn == "R" [U][B]&& [/B][B]OutsideInside == true[/B][/U])
{
snd.SoundLocation = "./sounds/outside" + sRand + ".wav";
lastSound = "O";
}
snd.Stop();
snd.Play();
break;
case "R":
nbRand = random.Next(0, 2);
sRand = "";
if (nbRand == 1)
sRand = "2";
if (CVTurn == "N"[B] || OutsideInside == false[/B])
{
snd.SoundLocation = "./sounds/right" + sRand + ".wav";
lastSound = "R";
}
if (CVTurn == "L" [U][B]&& [/B][B]OutsideInside == true[/B][/U])
{
snd.SoundLocation = "./sounds/outside" + sRand + ".wav";
lastSound = "O";
}
if (CVTurn == "R" [U][B]&& [/B][B]OutsideInside == true[/B][/U])
{
snd.SoundLocation = "./sounds/inside" + sRand + ".wav";
lastSound = "I";
}
snd.Stop();
snd.Play();
break;
case "M":
snd.SoundLocation = "./sounds/middle.wav";
lastSound = "M";
snd.Stop();
snd.Play();
break;