I met a question.
I use command
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --headless --remote-debugging-port=9222 ----remote-debugging-address=192.168.1.154
to run chrome headless mode.
I can open "Headless Chromium" tab by http://localhost:9222,like this.
But the http://192.168.1.154 can`t open it.
I`m sure my ip is 192.168.1.154 and firewall is close.
How to solve it?
Please tell me,thanks.
your IP and localhost IP isnt the same, try it with 127.0.0.1:9222
Related
When I open my site in Google Chrome, it gives the error failed to load resource in the console. My images are not showing in Chrome but are fine on other browsers. How can I fix this issue?
I had the same issue. I'm working on Windows 8.1 system and had the problem with almost every page in Google Chrome, IE 11 and Firefox.
This is what worked for me. Run CMD as administrator and execute the following commands:
ipconfig /flushdns
ipconfig /renew
ipconfig /registerdns
I did not have to restart my PC, but everything worked again and all pages on the internet were avalible again.
As a quick test to see if that's your problem, start Chrome in incognito mode with extensions disabled (ctrl+shift+n) and see if your page works now. Note that by default all extensions will be already disabled in incognito mode unless you've specifically set them to run (via chrome://extensions). please refer to this
I've spent weeks fighting with this problem on 2 different unrelated computers, even unable to ping Yahoo.com and having variety of connectivity issues in web browsers, including "DNS_PROBE_FINISHED_NXDOMAIN" and "ERR_NAME_NOT_RESOLVED". I've tried various ipconfig commands, restarting DNS client service, "netsh winsock reset", and other solutions found on the internet.
Finally I realized the only common thing on both my computers was Malwarebytes. After closing/exiting Malwarebytes the problem was solved. I am now able to ping and access every website. The solution, again, at least in my case: close Malwarebytes
I just contacted Malwarebytes support but in the meantime wanted to provide this possible solution here.
You might have to check your internet connection. Many a time, the data can't be fetched due to bad or no internet. Or open the site in incognito mode and check whether that works or not. If you are using any blocker extensions, disable and check again.
You can do that via (chrome://extensions).
This can be caused if the URL supplied is wrong, this was my case.
In top of my dashboard showing two errors...
Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.) in /public_html/couponinuse.com/wp-includes/update.php on line 295
thankz in advance
Assuming this is coming from a localhost installation.....
This is due to you having a poor internet connection. I see it often. All it does is slow down your localhost site while it searches for wordpress.org, and that is all. It is simply Wordpress checking the net for updates (and probably fonts as well).
It's just irritating, but no action is needed on your behalf.
I have solved this issue by adding the following line in the bottom of wp-config.php file.
define('WP_HTTP_BLOCK_EXTERNAL', false);
I fixed the error on Ubuntu OS using following steps
open terminal or(Ctrl+t) and type ping api.wordpress.org
Note the ip address pinging on the terminal. Close the operation by typing Ctrl+c
Type sudo gedit /etc/hosts and add above ipaddress followed by api.wordpress.org like this (198.xxx.xxx.xxx api.wordpress.org) in the host file
Hope this helps others who runs Ubuntu OS
I've searched around and found a lot of advice saying to modify the hosts file as such:
127.0.0.1 mydomainname.com
I've done that, but my actual site at mydomainname.com is still being used. Any other troubleshooting steps I could take? Any other suggestions?
Restart your browser, try ipconfig /flushdns (I'm a bit hazy on Windows DNS caching so that may or may not help here) or restart your computer. Unless you've done something really weird, the hosts file should have priority, so something must be caching the DNS result.
simply setup your canvas address as localhost. Unless you're using FBML, it works. See http://fbgraph.computerbeacon.net/tutorial/section1/createnewapp.aspx for an example.
Just make your redirect_uri your localhost address like:
https://graph.facebook.com/oauth/authorize?client_id={consumerKey}&redirect_uri=http://localhost:4403/Handshake
I have mine set up in visual studio to switch between localhost and live return_url's depending on whether debug or release is selected
I posted a similar question earlier today but this question is clearer.
I want to locally develop my Wordpress websites (on my Mac) and test them in Internet Explorer (6,7,8) on Windows XP.
I can get the MAMP welcome screen to show in Windows XP, so I know VMWare is doing it's thing.
The local URL for my site (on my Mac) is:
URL (http://d3creative:8888/)
But the local URL under VMware/Internet Explorer is:
URL (http://192.168.2.1:8888/d3creative/)
This is the only way I can get it to show up, problem is all the CSS styles are referencing the local Mac URL (http://d3creative:8888/)
So understandably the CSS isn't showing up.
Is there a way to tell Windows that "http://192.168.2.1:8888/d3creative/" should equal "http://d3creative:8888/"
I've tried editing the "hosts" file within in Windows XP and I've rebooted after making any changes, but nothing is working.
My software:
MAMP Pro (v1.8.2)
Wordpress (v2.8.6)
Windows XP (SP3)
Internet Explorer (6, 7, 8)
Any help would be much appreciated.
Stephen Meehan
Thanks for everyone for taking a look at this, after much head scratching I have arrived at a solution!
Here's how I did it. hope this helps anyone else with the same problem. I'll be posting a video walk though for this at the end of next week on my website.
MAC OS
Open terminal to find your Mac IP address
type: ifconfig in terminal
Scroll down until you see "vmnet1"
Look for the word "inet" next to this is the IP address you need
Make a note of this as you will need it when you modify the "hosts" file in Windows XP
Close Terminal
VMWare:
Set network adapter to "host-only" and make sure it is connected.
Add your MAC Address in the Advanced options field
(Your Mac address can be found in the system preferences under network)
Close the window and it will ask you to apply changes, say yes.
Windows XP
Open the hosts file (c:\windows\system32\drivers\etc\hosts)
Use notepad
You should see:
127.0.0.1 localhost
Under this enter the Mac IP address you got from Terminal followed by the name of your local site - in this case the site name is "newdemo". The site is determined by the Server name you set in MAMP Pro
Your Mac IP Address newdemo
Your hosts file should now look like this:
127.0.0.1 localhost
Your Mac IP Address newdemo #change this to the Server name you set in MAMP
Command prompt (Windows)
Open command prompt (start button > run > type in CMD)
Type ipconfig/flushdns
Now when you visit http://newdemo:8888/ you will see your local site in Internet Explorer!
Good luck!
Stephen Meehan
From your description, you have the site hosted on a Mac which is also running a virtual machine with Windows on it and when you try to access your site on the Mac from Internet Explorer in the VM you get no css but do you get the css fine if you point Safari on the Mac back at itself?
I would view the source of the Wordpress page in IE and check that the url for the css file is relative to the root of the website and not pointing directly at a filename in the OSX directory tree.
But without knowing what is actually in the rendered source code in the browser, it seems hard to think of what the problem might be.
The hosts file is certainly the first way to go (and should work for translating the host name into the IP no problem) but the problem in your case is that you need to serve different directory levels. Why is that in the first place? It can certainly be solved with mod_rewrite but it's awfully cumbersome.
Can't you address the whole site with http://d3creative? Won't that solve the hierarchy problem?
Im not much of a techie, but cant you just use wamp on the xp side?
http://www.wampserver.com/
You're going the wrong way with the hosts file -- instead of trying to get your browser to treat 192.168.2.1 as d3creative, putting the entry in your hosts file will allow the machine to resolve d3creative -- visit http://d3creative in your Windows browser.
HTTP works by first resolving the host name to an IP address, if required, then by passing the host name (or IP address, if no host name was given) when it connects to that IP address. The hosts file looks after extra mappings between names and IP addresses, it doesn't have anything to do with what the browser will pass to the server once the connection has been made, while the server will decide which locally-hosted site to return based on what the browser tells it after the connection has been made.
I used to run web applications all the time on my laptop, no problems, I am using VWD 2008 Express, i have the latest framework, Windows Vista Home Basic...etc..
Now, when ever i try to run a website, or even chose to Show a Page in Browser from Within VWD, the browser (both IE and Firefox) keeps looking for www.localhost.com...
I tried to copy the address of and paste it directly in the title bar, nothing, same problem i tried to get that address from the balloon notification (the one that pops up when you run any ASP.net project), still nothing happens...
My colleague is facing the same problem, but for him, he can simply copy and paste the url in the address bar, but its not working with me....Heeeeeellllllllllllllllp
Check your hosts file, it should be redirecting localhost to 127.0.0.1 and nothing else. The entry that will cause this error should look like this:
127.0.0.1 www.localhost.com
If you find this, remove it or change www.localhost.com to localhost.
You can also try to post one of these in the adress bar:
127.0.0.1
http://localhost
Note that the hosts file is a popular victim of viruses, so if is has been modified, you might run a check on viruses.
Also see the discussion here.
If that also doesn't work, open up nod32 (you probably have it installed on your system if the above methods don't work) go to advanced setup, on the left menu, select protocol filtering, and select HTTP and POP3 ports... ;)
I got the same problem in firefox 3.6 when my server was down.
In my case it was not a problem with etc/hosts where the line
127.0.0.1 localhost
was there and OK.
The solution that worked for me was to disable the "cleaver" URL fixing that Firefox carry out when the page is not found. The procedure taken from here:
Type about:config in the address bar and hit return.
find browser.fixup.alternate.enabled
double click the “true” value. The line will become bold, and the
value will change to “false”
This fix directly the problem. No firefox restart needed. If your server is down you get "page not found" as expected.
Hope it helps.
Thank you for your solution ... this works fine...
I got the same problem in firefox 3.6
when my server was down. In my case it
was not a problem with etc/hosts where
the line
127.0.0.1 localhost
was there and OK.
The solution that worked for me was to
disable the "cleaver" URL fixing that
Firefox carry out when the page is not
found. The procedure taken from here:
1. Type about:config in the address bar and hit return.
2. find browser.fixup.alternate.enabled
3. double click the “true” value. The line will become bold, and
the value will change to “false”
This fix directly the problem. No
firefox restart needed. If your server
is down you get "page not found" as
expected. Hope it helps. link|flag
answered Sep 3 at 7:55 joaquin
2,237112
A couple of random things to check...
localhost is the conventional name for the IP address 127.0.0.1. If that address doesn't work, then you have a network configuration problem.
There will be a hosts file somewhere, probably in somewhere like C:\Windows\System32\Drivers\Etc\hosts which should usually contain only that definition for localhost. If it has more names in it and you didn't put them there, then you have another problem entirely.
There is also the forehead-slapping possibility that your web server is not currently running. :)