Thanks Thomas, I really use the built-in PortService.
There's nothing to do with the firewall, or similar, I run telnet on the very same machine where the agent runs.
I have looked at the logs, but it says nothing interesting I guess:
2014-03-13 09:55:49,267 INFO [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Starting: Thu Mar 13 09:55:49 UTC 2014
2014-03-13 09:55:49,286 INFO [InventoryManager.availability-1] (rhq.core.pc.inventory.AvailabilityExecutor)- Scan Ended : Thu Mar 13 09:55:49 UTC 2014 : Scan [startTime=1394704549267, endTime=1394704549286, runtime=19, isFull=false, isForced=false, numResources=96, numGetAvailabilityCalls=8, numScheduledRandomly=0, numPushedByInterval=7, numAvailabilityChanges=0, numDeferToParent=0]
2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Executing runtime discovery scan rooted at [Resource[id=15681, uuid=b4bf9904-32ca-43f9-872e-c303d2ce54fd, type={NetworkServices}PortService, key=Port 127.0.0.1:5001, name=Port 127.0.0.1:5001, parent=front-no]]...
2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.RuntimeDiscoveryExecutor)- Scanned platform and 0 server(s) and discovered 0 new descendant Resource(s).
2014-03-13 09:55:54,267 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Sending [runtime] inventory report to Server...
2014-03-13 09:55:54,348 INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Syncing local inventory with Server inventory...