<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Another My Program &#187; port</title>
	<atom:link href="http://tim.diary.tw/tag/port/feed/" rel="self" type="application/rss+xml" />
	<link>http://tim.diary.tw</link>
	<description>just another my program</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:40:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://tim.diary.tw/?pushpress=hub'/>
		<item>
		<title>如何讓IIS只佔用指定IP</title>
		<link>http://tim.diary.tw/2008/06/28/assign-ip-to-iis/</link>
		<comments>http://tim.diary.tw/2008/06/28/assign-ip-to-iis/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 16:45:41 +0000</pubDate>
		<dc:creator>tim</dc:creator>
				<category><![CDATA[系統技術]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://tim.diary.tw/2008/06/28/assign-ip-to-iis/</guid>
		<description><![CDATA[在 IIS 中的站台設定, 可以明確地指定單一站台的 IP及 PORT, 不過無論如何設定, 預設 IIS 就會在發起 SERVICE 時, 佔用 0.0.0.0 這個 IP (也就是全部的 IP), 若是希望 IIS 不要佔用這個 IP (也就是希望能和其他佔用 80 PORT 的 SERVICE, 如 APACHE 共同使用同一台主機的狀況下), 可以利用 Support Tools 內的 httpcfg 工具來進行操作, 詳細步驟如下: 1. Click Start, and then click Run. 2. Type cmd, and then click OK to open a command [...]]]></description>
			<content:encoded><![CDATA[<p>在 IIS 中的站台設定, 可以明確地指定單一站台的 IP及 PORT, 不過無論如何設定, 預設 IIS 就會在發起 SERVICE 時, 佔用 0.0.0.0 這個 IP (也就是全部的 IP), 若是希望 IIS 不要佔用這個 IP (也就是希望能和其他佔用 80 PORT 的 SERVICE, 如 APACHE 共同使用同一台主機的狀況下), 可以利用 Support Tools 內的 httpcfg 工具來進行操作, 詳細步驟如下:</p>
<p>1.    Click Start, and then click Run.<br />
2.    Type cmd, and then click OK to open a command prompt.<br />
3.    Type the following, where xxx.xxx.x.x is the IP address you want to add:</p>
<blockquote><p> httpcfg set iplisten -i xxx.xxx.x.x<br />
When this succeeds, Httpcfg returns the following:<br />
HttpSetServiceConfiguration completed with 0To view additional status codes, see the Httpcfg help.</p></blockquote>
<p>4.    After the IP address is added, use the following command to list it:</p>
<blockquote><p> httpcfg query iplisten<br />
Httpcfg returns the following:<br />
IP <img src='http://tim.diary.tw/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> xx.xxx.x.x</p></blockquote>
<p>5.    From the command prompt, stop the HTTP service and its dependent services. To do this, type the following string at the command prompt:</p>
<blockquote><p> net stop http /y</p></blockquote>
<p>6.    From the command prompt, restart the HTTP service and it dependent services. To do this, type the following string at the command prompt:</p>
<blockquote><p> net start w3svc<br />
Note When you start w3svc, all services that were stopped when HTTP was stopped will start.</p></blockquote>
<p>進行指定 IP 的操作後, 之後 IIS 就只會佔用指定的 IP, 而不會佔用全部的預設 IP 0.0.0.0 囉! 請參考微軟 KB 資料: <a href="http://support.microsoft.com/kb/813368">http://support.microsoft.com/kb/813368</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tim.diary.tw/2008/06/28/assign-ip-to-iis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

