localhost

InetAddress.getLocalHost() resolution on OSX Lion when offline

僤鯓⒐⒋嵵緔 提交于 2019-12-06 05:45:37
问题 Is anyone having issues with Java's InetAddress.getLocalHost() resolution in Java with OSX Lion when working offline (i.e. not connected to internet)? It would appear that localhost:127.0.0.1 is not resolved at all: Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at java.net.InetAddress.getLocalHost(InetAddress.java:1356) Nothing special in my /etc/hosts: ## # Host Database # # localhost is used to configure the loopback interface # when the system is booting. Do not change this entry.

MVC5 Web app using ADFS On-Premises Organizational Auth and Visual Studio 2013 localhost development

我与影子孤独终老i 提交于 2019-12-06 05:42:27
I am trying to create an MVC5 Web Application configured to use the On-Premises Organizational Authenticated Option (ADFS) as described Here by Vittorio Bertocci First, I create new MVC project. Then I change the Authentication to On-Premises. Set the On-Premises Authority to my ADFS federation metadata Endpoint. I checked to make sure the federation metadata xml could be reached and it was. I leave the App ID URI field blank accepting the default value. I ve done both, provided a value and left blank. I then configured my relying party app manually. Setting the relying party WS-Federation

Changing domain name from localhost to custom name in Visual Studio

假装没事ソ 提交于 2019-12-06 05:37:06
问题 I am new to MVC and I just created one MVC4 test project in VS 2010, it runs perectly but the url is http://localhost:60826/ I wanted to change it to http://my.test.site or at least http://my.test.site:60826/ I thought I can achieve that by simply putting an entry in host file which will resolve my.test.site to 127.0.0.1 and then just change the url to http://my.test.site:60826 . However it is not working, Am I missing something? EDIT: I was able to achieve this by just adding the 'my.test

tomcat启动

China☆狼群 提交于 2019-12-06 05:18:14
启动:bin/start.up.bat 双击运行该文件 访问:127.0.0.1:8080 或者ip:8080 或者 localhost:8080 正常关闭:1点击shutdown.bat 2 ctrl+c; 配置: 部属项目的方式:   1直接将项目放到webapps目录下面即可     *localhost:8080/hello/hello.html           8080/项目的访问路径--》虚拟目录         简化部属:将项目打成war包,在将war包放在webapp目录下,可以自动解压缩,删除之后也会自动将文件夹删除  2配置conf/server.xml文件   在<Host>标签体中配置--------不安全   <Context docBase="D:\hello" path="/hehe" /> docBase:项目存放的路径 path:虚拟目录   3在conf\Catalina\localhost创建任意名称的xml文件,在文件中编写 <Context docBase="D:\hello" path="/hehe" /> 虚拟目录就是:xml文件的名称 静态项目和动态项目: 目录结构: java动态项目的目录结构: ----项目的根目录: ----WEB-INF目录:      -----web.xml:web项目的核心的配置文件     ----

Nod32 causing LocalHost (ASP.NET Development Server) “Connection Interrupted” Problem

萝らか妹 提交于 2019-12-06 05:07:50
问题 I'm quoting myself on a previous question I asked to further explain: "I'm trying to run a freshly created ASP.NET Website using C#, however when I do so it launches FireFox and attempts to connect to http://localhost:1295/WebSite1/Default.aspx (for example), but after about 10-15 seconds it displays a "Connection Interrupted - The connection to the server was reset while the page was loading." Error. This issue is also present with older ASP.NET C# pages/Web Services I've built in the past,

How to access local server on a PC using Opera Mobile

房东的猫 提交于 2019-12-06 05:00:50
I am trying to test my website on Opera Mobile on my PC. But I am not able to connect to the local server using the mobile browser. Could any one of you tell me what all settings need to be changed in order to make this thing work? Your answers will be greatly appreciated. Thanks in advance, Yamini Using Opera Mobile in non turbo or non mini mode should work for accessing your locally hosted server. Try going into the Settings of Opera Mobile and turning off Compression/Mini/Turbo . Then you should be able to access your localhost/127.0.0.1 hosted site. Alternatively, try using the IP address

changing the name of localhost web app express?

与世无争的帅哥 提交于 2019-12-06 04:31:09
问题 I'm working on a project, and I NEED to change the name of the project from localhost:9000 to someothername:9000, this is in my development environment, not production. I was given the project files, and the person (who is no longer here) used express.js. I've searched and searched for the answer to this, but I cannot figure it out. So, is it possible to change the name of localhost:9000 to someothername:9000 using express.js or updating the gruntfile? I know that I can change the localhost

MAMP - Mac OS X

瘦欲@ 提交于 2019-12-06 04:18:29
问题 I have been using MAMP for sometime now on port 8888 so I visit website in the browser like so: http://localhost:8888/website However I have just installed a Wordpress Multisite and therefore want to switch to port 80 to allow me to visit the websites as normal and have sub directories e.g. http://website.co.uk , http://subdomain.website.co.uk I have setup the vhosts file within MAMP and changed the port to 80 in the MAMP preferences but ever since doing this MAMP will not start Apache. MySQL

Why IE rejects a self-signed localhost certificate for 127.0.0.1 only, when Chrome accepts it?

不打扰是莪最后的温柔 提交于 2019-12-06 03:49:56
问题 Our Java 7 application needs to listen for HTTPS requests on localhost. It must accept connections on https://localhost:8112 and https://127.0.0.1:8112 . To do so we have programmatically built an auto-signed X509v3 certificate, and we have installed this certificate in the Windows-ROOT keystore, as follows: KeyStore.TrustedCertificateEntry trustedCert = ...; KeyStore ks = KeyStore.getInstance("Windows-ROOT"); ks.load(null, null); ks.setEntry("xxxx_localhost", trustedCert, null); This makes

linux防火墙之forewalld

删除回忆录丶 提交于 2019-12-06 03:37:24
管理方式 (1)firewalld-config 图形化 (2)firewalld-cmd 命令行 (3)xml(zone,server) vim 搭建测试环境: 关闭iptables防火墙,开启firewalld防火墙,安装好测试服务(httpd,vsftpd) [root@localhost ~]# systemctl stop iptables Failed to stop iptables.service: Unit iptables.service not loaded. [root@localhost ~]# systemctl start firewalld [root@localhost ~]# systemctl status firewalld ?.firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active: active (running) since 浜.2019-11-29 22:06:39 CST; 3min 54s ago Docs: man:firewalld(1) Main PID: 1160