I have a MySQL server running on my Windows 7 computer as a Windows Service. When I try to connect to it using external.ip = my ip address from http://www.whatismyip.com/ in command prompt:
mysql -h external.ip -u root -p
it returns:
ERROR 2003 (HY000): Can't connect to MySQL server on external.ip (10060)
I can, however, connect it to it when I change external.ip to the ip address listed with the ipconfig command:
mysql -h ipconfig.ip -u root -p
I already changed the permissions for root to accept any host (using commands like those from Accessing a mysql database from external host/ip? (ie: mysql workbench)). In the database:
SELECT host, user FROM user;
returns (to summarize):
| host | user |
-----------------
| % | root |
Also, in my my.ini file, there is no line that says skip-networking.
It worked fine when I tried this the other day on a different network where external.ip was the same as ipconfig.ip. Could this be the source of the problem or is there something else?