I'm moving hosts over to a shared host (HostGator) and trying to access my site before DNS propagation has completed, so I can access my WP-ADMIN (which can't be done w/ temporary URLs).
I'm told that editing my HOSTS file (w/ the domain name and new IP) will allow me to access it prior to migration. But what's the difference between doing that and just skipping altering HOSTS typing in the IP address directly?
I feel like I'm missing some fundamental beyond "DNS takes a name and translates to an IP address." b/c typing in an IP clearly isn't the exact same as typing a domain. Example - I ping StackOverflow, HostGator, and Google and go to their respective IP addresses I get: "Error 103", "Error 404", and no error at all, respectively.
Ultimately, I just want into my WP-ADMIN before propagation is complete. I've updated HOSTS and my computer seems to bypass looking at it (Windows 10 using FF, Edge, Chrome. One space between domain and IP. Hosts file has no extension. Registry entry for HOSTS points at the system32/drivers/etc
folder correctly. I even updated the lesser known HOSTS found in - C:\Windows\WinSxS\amd64_microsoft-windows-w..ucture-other-minwin_31bf3856ad364e35_10.0.10586.0_none_c1c535cf0f692563
).
Before I keep endlessly troubleshooting why my HOSTS file is being ignored, I'd like to know if a) that will actually allow me to get into my WP-ADMIN and b) Why (since I'm obviously not understanding something in the DNS fundamentals)?
ipconfig /flushdns
from a command prompt. Also, make sure you have the correct "hostname" (not "domain") in your HOSTS file. eg.www.example.com
orexample.com
(or both).