Today I have been busy testing some stuff using my NXT bricks, but found out that my ultrasonic sensors were not working. After testing using two sensors and two bricks, I could determine that the Ultrasonic sensor does not seem to work when connected to Port 4. This is the case for any combination of sensors and brick (4 combinations of course, in my case).
The only thing I changed in my code to get it working was SensorPort.S4 to SensorPort.S3, and I of course replugged the sensor to port 3. The Ultrasonic sensor works on port 1-3, while other sensors (at least the light sensor, haven't tested any others jet) seem to work at all ports including 4.
Other people over here who are using different environments (RobotC, BricxCC) -can- connect the Ultrasonic sensor to port 4 and use it normally.
Is there any reason for this? If so, I couldn't find it...

