@kenjoe. I don't think it is because of NAT because i have done port forwarding. I also have tried not to use my router to connect to the Internet but instead use modem. I have posted my code at the link above(ideone) . The application is not finished yet, I just try the connection by sending "Hello" to the client. Well now, i am trying to learn using external web server. It is good knowing something new.
EDIT:
The fact that you're starting attempt at a RAT works over local network further supports my idea.
I checked if there are any open port at
www.grc.com and all my port ranging from 1 to 1056 are stealth. I guess my ISP blocks all the port.
-- Double posters get slapped! Use the modify button fool.