Advertisement
Guest User

Untitled

a guest
May 27th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Since you are on the Windows machine, these things can be done,
  2.  
  3. Execute the following command and look for a ":3306" listener (you did not mention UDP/TCP). This will confirm there is something running on the port.
  4.  
  5. netstat -a -n
  6.  
  7. After this, if you are expecting incoming connections on this port and feel that the firewall may be blocking them, you could start windows firewall logging and check the logs for dropped connections
  8.  
  9. Go to the Windows Firewall, Advanced settings
  10. Click on the Settings button next to "Local Area Connection"
  11. Select "Log dropped packets"
  12. Look at the log file location (if not present define one)
  13. Click OK
  14. Now, when the connection attempt is made (assuming you know when this is done), look at the log file for a drop on port 3306.
  15. If this is seen, you will want to add an exception for this port.
  16. There is one more command to check the firewall state
  17. (Update for Windows 7 users -- as referred by Nick below -- use netsh advfirewall firewall)
  18.  
  19. netsh firewall show state
  20.  
  21. this will list the blocked ports as well as active listening ports with application associations
  22. This command will dump the Windows firewall configuration detail
  23.  
  24. netsh firewall show config
  25.  
  26.  
  27. C:\Windows\System32>netstat -an |find "3306"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement