How do you connect to the Internet? Two possible reasons I can
think of:
1. port is conflicting with some other app.
2. you have different ip addr when you connect to the net.
The second one is more likely. Try ipconfig /all to see what's
your ip when you are connected/disconnected.