http://localhost:8600 works but not http://myPcName:8600 on Windows7

194 views
Skip to first unread message

Paolo Broccardo

unread,
Aug 20, 2010, 4:01:55 AM8/20/10
to Railo
Hi all

After upgrading to windows 7 64bit, I am having no luck getting my
websites to run using the computer name like I did before. As the
title indicates:

http://localhost:8600/ works
but not
http://myPcName:8600/

Does anyone have any suggestions as to what the problem is here? I
suspect this is not a Railo issue, probably IIS but just don't seem to
dog up anything that works.

I have tried turning off the firewalls which did not help.

Any ideas?

Thanks

Paul Kukiel

unread,
Aug 20, 2010, 4:08:52 AM8/20/10
to ra...@googlegroups.com
Is myPcName resolving? Or can you ping it?

Paolo Broccardo

unread,
Aug 20, 2010, 5:20:46 AM8/20/10
to Railo
I can ping it fine.

Paul Kukiel

unread,
Aug 20, 2010, 5:22:28 AM8/20/10
to ra...@googlegroups.com
Did you have virtual hosts set in resin.conf?

Did you copy them accross for the new install?

Paolo Broccardo

unread,
Aug 20, 2010, 5:47:51 AM8/20/10
to Railo
No virtual hosts. Just the bog standard Railo install.
I've just done some more testing and noticed it does the same in Adobe
Coldfusion, so it's definitely not a Railo specific thing.
Something must not be allowing the computer name to resolve into an IP
- somewhere in IIS / Windows? grrr.

Todd Rafferty

unread,
Aug 20, 2010, 6:15:35 AM8/20/10
to ra...@googlegroups.com
Well, you need myPcName defined as a virtual host in both Resin and IIS.
--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

Russ Michaels

unread,
Aug 20, 2010, 8:32:25 AM8/20/10
to ra...@googlegroups.com

You will need any additional host names added to your windows hosts file for them to resolve. Unless you have the site in iis setup as all unasaigned then you need to add a host header there too,

On 20 Aug 2010 11:15, "Todd Rafferty" <to...@getrailo.org> wrote:

Well, you need myPcName defined as a virtual host in both Resin and IIS.



On Fri, Aug 20, 2010 at 5:47 AM, Paolo Broccardo <ad...@cheekyonline.com> wrote:
>

> No virtual ho...

Paolo Broccardo

unread,
Aug 20, 2010, 9:54:24 AM8/20/10
to Railo
Ok - thanks for all the feedback. Just one question though - this was
never required on XP or Vista. Why is it happening now on Windows 7?
I never had to set up anything in the host file previously. IF I typed
http://localhost OR http://myPcName they worked. This on EVERY machine
i ever set up Coldfusion or Railo on.
Only this Windows 7 box is giving this issue. Is there something
specific to Windows 7 that causes this to occur?



On Aug 20, 2:32 pm, Russ Michaels <russ.micha...@gmail.com> wrote:
> You will need any additional host names added to your windows hosts file for
> them to resolve. Unless you have the site in iis setup as all unasaigned
> then you need to add a host header there too,
>

Todd Rafferty

unread,
Aug 20, 2010, 9:59:36 AM8/20/10
to ra...@googlegroups.com
Ok, localhost and mypcname are probably resolving correctly via dns / host. However, Tomcat or IIS may not be resolving the hostname correctly internally via vhost. You're running Windows 7 which means you're running a newer IIS than what XP / Vista came with.


On Fri, Aug 20, 2010 at 9:54 AM, Paolo Broccardo <ad...@cheekyonline.com> wrote:
Ok - thanks for all the feedback. Just one question though - this was
never required on XP or Vista. Why is it happening now on Windows 7?
I never had to set up anything in the host file previously. IF I typed
http://localhost OR http://myPcName they worked. This on EVERY machine
i ever set up Coldfusion or Railo on.
Only this Windows 7 box is giving this issue. Is there something
specific to Windows 7 that causes this to occur?

Paolo Broccardo

unread,
Aug 20, 2010, 11:06:16 AM8/20/10
to Railo
Hi guys

So I have added the following line to my hosts file:
127.0.0.1 myPcName

Now, when I access the site from my local PC using "http://myPcName"
it works fine. So far so good.

But, when I try and access that url from a network PC, it hangs.
From the network pc, I can ping it just fine though.

Please bear with me here - IIS is not my strong point. So, is there
anything else I need to add that I'm missing?
Even with the firewall off, it doesn't connect / hangs.

Thanks




On Aug 20, 3:59 pm, Todd Rafferty <t...@getrailo.org> wrote:
> Ok, localhost and mypcname are probably resolving correctly via dns / host.
> However, Tomcat or IIS may not be resolving the hostname correctly
> internally via vhost. You're running Windows 7 which means you're running a
> *newer* IIS than what XP / Vista came with.
>
> On Fri, Aug 20, 2010 at 9:54 AM, Paolo Broccardo <ad...@cheekyonline.com>wrote:
>
> > Ok - thanks for all the feedback. Just one question though - this was
> > never required on XP or Vista. Why is it happening now on Windows 7?
> > I never had to set up anything in the host file previously. IF I typed
> >http://localhostORhttp://myPcNamethey worked. This on EVERY machine

Russ Michaels

unread,
Aug 20, 2010, 2:24:34 PM8/20/10
to ra...@googlegroups.com
If you can ping the machine name from other machines and they can see you on the network then the network side of things is probably fine.
So it is probably a security/firewall type issue on your machine.
Check whatever firewall/AV software you have installed and make sure you are allow remote access to port 80.

Russ
--
---
Russ Michaels
my blog: www.michaels.me.uk
www.cfmldeveloper.com - free CFML hosting for developers
www.bluethunderinternet.com - professional ColdFusion and Railo hosting


Russ Michaels

unread,
Aug 20, 2010, 2:26:41 PM8/20/10
to ra...@googlegroups.com
as to why u have to do more on windows 7, this is because windows 7 is far more secure and takes the "Secure by default" approach, and you have to open things up to gain access to them, which is the way it should be.
XP is the complete opposite, and if you do not lock it down you are insecure and open to attack.

Russ

Paolo Broccardo

unread,
Aug 20, 2010, 2:32:11 PM8/20/10
to Railo
Hi Russ

Thanks for the feedback. As mentioned, I switched the Firewall and AV
off completely and still had issues.
Would I still need to open port 80 with all of those disabled??

Regards
Paolo



On Aug 20, 8:26 pm, Russ Michaels <russ.micha...@gmail.com> wrote:
> as to why u have to do more on windows 7, this is because windows 7 is far
> more secure and takes the "Secure by default" approach, and you have to open
> things up to gain access to them, which is the way it should be.
> XP is the complete opposite, and if you do not lock it down you are insecure
> and open to attack.
>
> Russ
>
> >> > >http://localhostORhttp://myPcNametheyworked. This on EVERY machine
> >> > > i ever set up Coldfusion or Railo on.
> >> > > Only this Windows 7 box is giving this issue. Is there something
> >> > > specific to Windows 7 that causes this to occur?
>
> >> > --
> >> > ~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
> >>http://getrailo.org/
>
> > --
> > ---
> > Russ Michaels
> > my blog:www.michaels.me.uk
> >www.cfmldeveloper.com- free CFML hosting for developers
> >www.bluethunderinternet.com- professional ColdFusion and Railo hosting
>
> --
> ---
> Russ Michaels
> my blog:www.michaels.me.ukwww.cfmldeveloper.com- free CFML hosting for developerswww.bluethunderinternet.com- professional ColdFusion and Railo hosting

Paolo Broccardo

unread,
Aug 21, 2010, 4:50:46 AM8/21/10
to Railo
So I opened port 80 and 8600 as well, with no luck :(

But, when I woke up this morning I had a bit of a brainwave. A while
back, when I was having speed issues between PC's on my network, I
made a few changes to the network settings to speed up the network as
detailed in this article:
http://www.sysprobs.com/windows-7-network-slow

Just to summarise what I did from those:
1) Disabled Autotuning
2) Removed RDC ( Remote Differential Compression)
3) Remove IPv6 from network properties
4) Clear DNS Cache

Now, I know item 4 couldn't be responsible for this. The first three
however I can't say.
Can anyone tell me if points 1 - 3 could be affecting my local machine
from accepting remote connections?

Thanks
> > >www.cfmldeveloper.com-free CFML hosting for developers
> > >www.bluethunderinternet.com-professional ColdFusion and Railo hosting

Russ Michaels

unread,
Aug 21, 2010, 5:22:54 PM8/21/10
to ra...@googlegroups.com
can you just browse http://pcname/ without the 8600 from the other machine ?

Russ
www.cfmldeveloper.com - free CFML hosting for developers
www.bluethunderinternet.com - professional ColdFusion and Railo hosting


Paul Klinkenberg

unread,
Aug 21, 2010, 5:43:16 PM8/21/10
to ra...@googlegroups.com
And have you checked if other pc's in the network can connect to the computer via your ip address? i.e. http://192.168.0.17

Regards,

Paul Klinkenberg
www.railodeveloper.com



Paolo Broccardo

unread,
Aug 22, 2010, 5:22:17 AM8/22/10
to Railo
Hi Russ / Paul

I have in fact tried by IP, with port 8600 and without, as well as pc
name with port and without.
All just hang. Very strange indeed.

Thanks
Paolo



On Aug 21, 11:43 pm, Paul Klinkenberg <p...@ongevraagdadvies.nl>
wrote:
> And have you checked if other pc's in the network can connect to the computer via your ip address? i.e.http://192.168.0.17
>
> Regards,
>
> Paul Klinkenbergwww.railodeveloper.com
>
> Op 21 aug 2010, om 23:22 heeft Russ Michaels het volgende geschreven:
>
> can you just browsehttp://pcname/without the 8600 from the other machine ?
> > > >www.cfmldeveloper.com-freeCFML hosting for developers
> > > >www.bluethunderinternet.com-professionalColdFusion and Railo hosting
>
> > > --
> > > ---
> > > Russ Michaels
> > > my blog:www.michaels.me.ukwww.cfmldeveloper.com-freeCFML hosting for developerswww.bluethunderinternet.com-professionalColdFusion and Railo hosting
>
> --
> ---
> Russ Michaels
> my blog:www.michaels.me.ukwww.cfmldeveloper.com- free CFML hosting for developerswww.bluethunderinternet.com- professional ColdFusion and Railo hosting

Paolo Broccardo

unread,
Aug 22, 2010, 5:25:45 AM8/22/10
to Railo
Sorry - just to clarify. When I say "hang" I mean it hangs for a
while, before it goes to an error page saying: "The connection timed
out while connecting to the server..."
:)


On Aug 22, 11:22 am, Paolo Broccardo <ad...@cheekyonline.com> wrote:
> Hi Russ / Paul
>
> I have in fact tried by IP, with port 8600 and without, as well as pc
> name with port and without.
> All just hang. Very strange indeed.
>
> Thanks
> Paolo
>
> On Aug 21, 11:43 pm, Paul Klinkenberg <p...@ongevraagdadvies.nl>
> wrote:
>
> > And have you checked if other pc's in the network can connect to the computer via your ip address? i.e.http://192.168.0.17
>
> > Regards,
>
> > Paul Klinkenbergwww.railodeveloper.com
>
> > Op 21 aug 2010, om 23:22 heeft Russ Michaels het volgende geschreven:
>
> > can you just browsehttp://pcname/withoutthe 8600 from the other machine ?
> > > > >www.cfmldeveloper.com-freeCFMLhosting for developers
> > > > >www.bluethunderinternet.com-professionalColdFusionand Railo hosting
>
> > > > --
> > > > ---
> > > > Russ Michaels
> > > > my blog:www.michaels.me.ukwww.cfmldeveloper.com-freeCFMLhosting for developerswww.bluethunderinternet.com-professionalColdFusionand Railo hosting
>
> > --
> > ---
> > Russ Michaels
> > my blog:www.michaels.me.ukwww.cfmldeveloper.com-free CFML hosting for developerswww.bluethunderinternet.com-professional ColdFusion and Railo hosting

Paolo Broccardo

unread,
Aug 22, 2010, 6:47:30 AM8/22/10
to Railo
MY OH MY OH MY!

I found the problem - whilst attending to a totally different issue
the obvious dawned on me.
My other security (ESET Smart Security) was the culprit. It has it's
own anti-virus and personal firewall. It had expired and I was under
the impression it wasn't active anymore.
So while trying to find the renew options, I noticed the section on
personal firewall (which I wasn't aware of) and it all made sense.
Once I disabled the firewall, it worked as expected, from any network
location. Now I know where I need to open the ports up.

Thanks for all of your help.


On Aug 22, 11:25 am, Paolo Broccardo <ad...@cheekyonline.com> wrote:
> Sorry - just to clarify. When I say "hang" I mean it hangs for a
> while, before it goes to an error page saying: "The connection timed
> out while connecting to the server..."
> :)
>
> On Aug 22, 11:22 am, Paolo Broccardo <ad...@cheekyonline.com> wrote:
>
> > Hi Russ / Paul
>
> > I have in fact tried by IP, with port 8600 and without, as well as pc
> > name with port and without.
> > All just hang. Very strange indeed.
>
> > Thanks
> > Paolo
>
> > On Aug 21, 11:43 pm, Paul Klinkenberg <p...@ongevraagdadvies.nl>
> > wrote:
>
> > > And have you checked if other pc's in the network can connect to the computer via your ip address? i.e.http://192.168.0.17
>
> > > Regards,
>
> > > Paul Klinkenbergwww.railodeveloper.com
>
> > > Op 21 aug 2010, om 23:22 heeft Russ Michaels het volgende geschreven:
>
> > > can you just browsehttp://pcname/withoutthe8600 from the other machine ?
> > > > > >www.cfmldeveloper.com-freeCFMLhostingfor developers
> > > > > >www.bluethunderinternet.com-professionalColdFusionandRailo hosting
>
> > > > > --
> > > > > ---
> > > > > Russ Michaels
> > > > > my blog:www.michaels.me.ukwww.cfmldeveloper.com-freeCFMLhostingfor developerswww.bluethunderinternet.com-professionalColdFusionandRailo hosting
>
> > > --
> > > ---
> > > Russ Michaels
> > > my blog:www.michaels.me.ukwww.cfmldeveloper.com-freeCFML hosting for developerswww.bluethunderinternet.com-professionalColdFusion and Railo hosting

Paul Klinkenberg

unread,
Aug 22, 2010, 9:19:24 AM8/22/10
to ra...@googlegroups.com
Good to hear! I already suspected it was a firewall issue, so nice to read my suspicion was right ;-)

Regards,

Paul Klinkenberg
www.railodeveloper.com



Reply all
Reply to author
Forward
0 new messages