---
title: "weblogic通过localhost可以访问，IP则不行"
author: "shaomeng95"
date: "2011-07-22T17:52:21Z"
tags: ["Weblogic", "应用服务器"]
categories: ["企业架构"]
slug: "weblogic-localhost-ip"
draft: false
lastmod: "2011-07-22T17:52:21Z"
id: 1130928
url: "https://shaomeng95.iteye.com/blog/1130928"
---

1 直接修改config.xml

```
<server>  
   <name>examplesServer</name>  
   <ssl>  
     <name>examplesServer</name>  
     <enabled>false</enabled>  
     <listen-port>7001</listen-port>  
   </ssl>  
   <listen-address></listen-address>  
 </server>
```

 

 

[![](http://yunzhongxia.iteye.com/images/spinner.gif)]()

```
 <server>
    <name>examplesServer</name>
    <ssl>
      <name>examplesServer</name>
      <enabled>false</enabled>
      <listen-port>7001</listen-port>
    </ssl>
    <listen-address></listen-address>
  </server>
```

 

listen-address如果为localhost就会出现IP地址不能访问。把listen-address为空就可以了。

 

2\. 通过控制台界面修改

 

  Environment----Servers 选中要修改的server，点击Configuration

 

   Listen Address就是要监听的地址了。

   ![](http://dl.iteye.com/upload/attachment/233111/e8b48659-39a6-3621-b21d-bb286b27210d.gif)