Try some other ports: 1111, 3500, 4008, 1203, 10000, 15189, 80, 20282, 22817, 443, 34599, 40475.
ie: LW's menu, Tools>Options>Advanced>Firewalls & change the listening port & press apply. Then go to File>Connect & give it lots of time to try to connect. At least 15 mins.
Some questions:
1. Connection type? (eg: dialup, broadband, cable, etc.)
2. Modem & router brand name & model numbers?
3. Where are you trying to connect from (home, school, work, etc.)?
4. What version of Limewire (LW) & Java do you have? (Go to LW's menu Help>About LW...) Will show both LW & Java version.
5. Who is your isp provider (Internet Service Provider)?
6. Are you sharing the connection with other computers or p2p sharing programs? If yes, please give details of set up.
7. You did the port 6346 test right & it failed?
http://www3.limewire.com:6346/ The page should say 'Your test worked!'. What happens when you go there?
You said you're on a LAN connection, so I wonder if you're being blocked by the main computer. Particularly if you're at a school or business.