Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Im running Windows Server 2008 R2, we have an application that connects from (binds to) a public IP on the server to [connects to a service listening on]

In Windows 2003, there was no issue with this. We can connect using TCP from [eg] to just fine.

In Windows 2008, we find that TCP connections from public ip e.g. to fail, even. but the service accepts connections from to, and to

Tried turning Windows firewall off, configuring its logging etc (no useful log entries showed up), to no avail. Is this an issue with the new networking stack?

edits is trying to connect to localhost [] on the same machine

Hosts file is default Windows 2008 host file.

Loopback check info, interesting. Tried it out...didnt work. Crosschecked to verify that Id done everything correctly - I have.

Im wondering if there is a solution using NAT or some other way to forward ports - if I forward to, would that work? Given that the app listens on it would pick up connections on

The HOSTS file does contain localhost - however, the hosts file is only used on hostname lookups. In this case, our application would not look up any hostname, since the IP address is hardcoded into it (rather than localhost hostname). So the HOSTS file would not come into play here.

As for ports above 1024 [think you refer to the MaxUserPort issue perhaps?] I tested this out by trying a simple connect to port 445 - works from, doesnt work when I connect from source IP 445 is a standard Windows service, so should work!

Currently not running NAT or RRAS on the machine...was wondering if there was a way to do the rerouting - Im guessing it wont work since the TCP/IP stack will reject the packet before it reaches the loopback interface to re-route.

Route print I had checked - seems fine, the public IPs routed first, then finally netmask and netmask both to loopback.

Edit Seems I have found the answer as to the reason for the problem. I used eventvwr.msc, enabled Winsock logging, turned off other services, just tried this connection test. Got an error which in hexadecimal mapped to STATUS_INVALID_ADDRESS_COMPONENT when I googled it.

That got me to:

Which confirmed that this is a change by design in WFP for Vista/7/Server 2008 [windows filtering platform].

[See response by Anupama Vasanth]

Looks like I will have to go the hard route and rewrite the code [hard because it means dealing with managers!]

Thank you for helping me locate/confirm the issue!

share|improve this question

migrated from Aug 14 '10 at 8:17

This question came from our site for professional and enthusiast programmers.

Are, in your description, and on the same machine? What do you have for them in hosts file? – Gennady Vanin Геннадий Ванин Aug 14 '10 at 14:18

Don't forget, in windows 2008, the firewall is turned on by default. This potentially can block any & all traffic even on the loopback interface. Additionally, if you bind to, you are accepting connections on ALL interfaces. The firewall would still block this. You could try turning off the firewall while testing... and then turn it back on. I haven't had any issues connecting to various programs I have developed on

share|improve this answer

Try connecting to in Vista/win2k8 and above - sounds funny but it works. Had positive results with this in the past

share|improve this answer

I most certain that it is connected with loopback check security feature though I cannot get in-depth detail how it is implemented, only how to overcome it:

And for "APPLIES TO" Windows 2008 see

Well, what is exactly is in your HOSTS file? I do not have W2008. Do you mean that there is no " localhost" there?

I also did read somewhere that default W2008 setup does not permit to communicate with ports greater than 1024.

You can submit feedback on MS Windows Server 2008 directly to MS team through

and they will reply

If you tried to switch off "loopback check" through method of registry editing then it requires reboot. Another one - not.

NAT inside machine? is not forwarded or routed, I believe so, it is internal, you can unplug network card, your will disappear but will continue to be there .

What is output of your (Run--> cmd --> route print)?

There is one more moment, I was thinking, though I do not know how to put it together. is localhost (interface), it is single-label name and considered local. is non-singlelabel name.

Possible issues with this is that such name might have been considered external

Can you try, separately:

  1. Disabling (if it is enabled and enabling if it is disabled) IPv6 on network adapter?

  2. Putting some single-label name for into HOSTS file?

What is corresponding event description, EventID, etc. in eventvwr.msc for failure to communicate from to ?

"445 is a standard Windows service"

Is it for SMB-direct over TCP/IP? for file sharing? CIFS?

Not so reliable... It is constantly being hacked by MS hotfixes. Read:

("NetBIOS browsing across subnets may fail after upgrading to Windows Server 2008") -


"we have the same issue as described earlier with Vista SP2 machines trying to reach a Windows Server 2008 SP1 or SP2 file share. The file sharing service is protected by Windows Firewall with advanced security using a predefined rule for file sharing (SMB) reguesting a secure connection"

locked by splattne Aug 16 '10 at 9:41
Will you please give it a rest with bitching about Server Fault in your answers. THAT is partly the reason you are being downvoted - you're too busy bitching about Server Fault creating excess noise, and not actually answering the question that has been asked. – Ben Pilbrow Aug 14 '10 at 17:39
@Ben, Thanks for attending my request! I really appreciate it, it helps me to manage my posts, the most valuable ones are the most dowmrated – Gennady Vanin Геннадий Ванин Aug 14 '10 at 18:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.