localhost

Can't access localhost via IP address

大兔子大兔子 提交于 2019-12-09 09:26:00
问题 I'm viewing a locally hosted website (using grunt serve , if that matters). I can view it via http://localhost:9000/ or http://127.0.0.1:9000/ , but not via http://10.0.0.16:9000/ . 10.0.0.16 is my local IP address (from ifconfig or System Preferences), but I cannot access my locally hosted content at http://10.0.0.16:9000/ from either the device that is hosting it or from other devices on the network. I haven't had trouble using my local IP address to access locally hosted sites when my

How can I make Facebook's graph API work on my localhost?

心不动则不痛 提交于 2019-12-09 09:06:54
问题 the title might suggest it, but i'm looking for a way to have Facebooks graph API work on my localhost. It's a pain if I need to sync up the project to the server every time I want to test, because graph only works when online. Does anyone have any suggestions on this problem? 回答1: If you don't need offline access (which is not available, see Jimmy Sawczuk's answer), but only need your website to be able to access the Graph API from your localhost instead of the real domain name, it should be

Multiple localhost:80-bound sites in IIS?

烈酒焚心 提交于 2019-12-09 08:41:05
问题 (You can skip directly to the question, but the context is on the background section.) Technical Context Windows 8 IIS 7 Background: As several others, I work with IIS and from time to time I need to set up a local version of a site. Now, in setting up different sites, it is quite common to just assign them different ports so that they don't overlap. So you could have your site A at port 80, your site B at port 81 and so on. Now, I want to setup the bindings so that I am able to have several

elasticsearch.js client connection refused: Access-Control-Allow-Origin not recognized?

ε祈祈猫儿з 提交于 2019-12-09 06:27:32
问题 I've been trying to ping a locally running elasticsearch using elasticsearch.jquery.min.js and I get a "no living connection" error each time. ETA: In Chrome I see what looks like a pretty low level "Connection Refused". I'm developing on MacOS X, and my browser points at the page via http://localhost/~myuserid/SiteName/ . As I'm accessing localhost:9200 this clearly falls under cross domain CORS requirements. I see the following error in the Chrome console: XMLHttpRequest cannot load http:/

Redirect localhost through proxy?

天大地大妈咪最大 提交于 2019-12-09 05:47:55
问题 I have a HTTP proxy running at localhost:1234. The proxy works fine for all web requests I make. I have a server running at localhost:4567 . I want HTTP requests to my server to go through my proxy. Should be simple, right? Is there a way to make IE or any other browser do this? 回答1: Generally you can configure your browser settings for this. In Firefox it's Options -> Advanced -> Network -> Connection (Settings). IE automatically ignores proxies if it detects a localhost URL. This has always

webpack-dev-server can't find localhost

夙愿已清 提交于 2019-12-09 03:06:52
问题 I'm trying to get started with React using webpack , but keep running into an error when I try to set up webpack-dev-server . I ran npm install webpack-dev-server followed by webpack-dev-server and the command line returns the following: events.js:154 throw er; // Unhandled 'error' event ^ Error: getaddrinfo ENOTFOUND localhost at errnoException (dns.js:26:10) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:77:26) Any clues on what is happening here? I don't really know how webpack

Accessing localhost from iPhone (in same network)

落花浮王杯 提交于 2019-12-09 02:56:18
问题 I want to test my iPhone web Application developed in localhost (XAMPP) in my iPhone. My system IP is 192.168.1.1 in the local network. When I visit http://192.168.1.1:80 in the browser, it says "The server 192.168.1.1:80 at DSL Router requires a username and password". I thought it must be my XAMPP username/password but it seems it is not and it shows a 404 error. Both my system and my iPhone are in the same network. So where am I doing it wrong? 回答1: Check to make sure your IP is correct

How to fix “This page can't be displayed” error in ASP.NET?

自作多情 提交于 2019-12-09 01:40:14
问题 I was debugging a localhost asp.net and I have made some very minor code changes and ran it again and now I get an error I have never gotten before. In nice big blue letters it tells me "This page can't be displayed". Apart from taking everything to forumula, what do you think would cause this error and how would I go about fixing it? It offers a button that says "Fix connection problems", but this is a localhost browser, so there are no connection, really. I clicked the button anyway and it

Workaround for PHP IMAP functions? Trying to work with incoming email on localhost using XAMPP

…衆ロ難τιáo~ 提交于 2019-12-09 01:24:38
问题 In the project I am working on right now, I am trying to add the functionality where I can change the status of a ticket from 'closed' to 'reopened' when the user sends an email to the support desk. I would also like to save their email reply to the database. The problem I am running into is that I cannot get PHP's IMAP functions to work on my current Apache configuration. From looking at quite a few posts here at stackoverflow and other places, it seems that the problem is OpenSSL is not

Chrome won't play .mp4 file

只愿长相守 提交于 2019-12-09 00:43:57
问题 I'm trying to get HTML5 video to work. I am working off a local server. <video id="headervideo" controls> <source src="<?php echo base_url(); ?>assets/home.mp4" type="video/mp4"> Your browser does not support the video tag. </video> However, the file refuses to play. When I access it with an absolute path it simply shows the player with the play button greyed out. What could be the issue here? 回答1: Browsers like Internet Explorer and Safari support .H264 codec which plays mp4 files. Firefox