Skip to main content
Inspiring
July 4, 2012
Answered

Can't connect to Jetty/Admin service remotely

  • July 4, 2012
  • 1 reply
  • 4913 views

I have Jetty installed on our local CF dev server so I can take advantage of stopping & starting CF from my dev box (on the same LAN as the CF dev server). CF 10 on a Win7 Pro 64-bit box.

I can connect to Jetty from the dev server via http://localhost:8985.

I've added firewall exceptions for it (tried both specific ports and allowing jetty.exe through).

But I just can't connect to it from any machine other than the one where Jetty is installed - it times out as if the port is blocked. I looked over the jetty director at the connector (which I'm admittedly not too familiar with) but I didn't see anything in there about 'localhost only' especially as the whole point is to be able to access the service remotely.

Am I missing something? I get not wanting to expose it to the wild, but our external firewall handles that. Do I need to mess with the internal tomcat setup for this to work?

This topic has been closed for replies.
Correct answer itisdesign

Interesting..

1) Open C:\ColdFusion10\cfusion\jetty\etc\jetty.xml

2) Search for "<Set name="Host">127.0.0.1</Set>"

3) Replace 127.0.0.1 w/ the CF server's IP address (same as the Host Name field on the 1st page of Remote Server setup wizard)

4) Restart the "ColdFusion 10 Jetty Server" service

5) Attempt stop or restart via CFB

6) See CFB's Servers view shows the server's status has changed from "Running" to "Stopping"

7) See no error logged to CFB's Console view

HOWEVER:  The remote CF server never actually stops or restarts.   And the status, in CFB's Servers view, hangs on "Stopping".

So..  got further..  but still no solution =P  (and of course Jetty can now be accessed in browser via server's IP, but no longer via localhost)

Thanks,

-Aaron

1 reply

itisdesign
Inspiring
July 5, 2012

Aquitaine wrote:

I have Jetty installed on our local CF dev server so I can take advantage of stopping & starting CF from my dev box (on the same LAN as the CF dev server). CF 10 on a Win7 Pro 64-bit box.

I can connect to Jetty from the dev server via http://localhost:8985.

[...]

But I just can't connect to it from any machine other than the one where Jetty is installed - it times out as if the port is blocked.

Hi Aquitaine,

I have reproduced this issue.  My setup:

- Two Win7 Pro 64-bit boxes.  CF10 Developer Edition on both.  Firewall disabled on both.  CFB 2.0.1 on both.

- Workspace contains both servers configured as Remote servers (so that I can close CFB on one machine, and jump to other machine, and use same workspace).

- CFB's "Remote Server Settings" tab is configured per the 2nd screenshot on this "What's new in ColdFusion Builder 2.0.1" article (Username and Password are same as defined in CF Admin > Solr Server > Advanced Settings.  Document Root is "C:\ColdFusion10\cfusion\wwwroot".).

- When attempting to start/stop/restart one of these remote servers via CFB on either machine, the following error is logged to CFB's Console view: "Cannot perform the operation. Admin server for the remote server SERVER_NAME_HERE is not running."

- In browser, I'm only able to hit Jetty at http://localhost:8985.  Any attempt to access it via the machine's IP results in a page-cannot-be-displayed message.  Of course means I cannot access each machine's Jetty via the other machine either.

I understand this does not help you.  Just verifying that I see exactly the same thing.

Thanks,

-Aaron

itisdesign
itisdesignCorrect answer
Inspiring
July 5, 2012

Interesting..

1) Open C:\ColdFusion10\cfusion\jetty\etc\jetty.xml

2) Search for "<Set name="Host">127.0.0.1</Set>"

3) Replace 127.0.0.1 w/ the CF server's IP address (same as the Host Name field on the 1st page of Remote Server setup wizard)

4) Restart the "ColdFusion 10 Jetty Server" service

5) Attempt stop or restart via CFB

6) See CFB's Servers view shows the server's status has changed from "Running" to "Stopping"

7) See no error logged to CFB's Console view

HOWEVER:  The remote CF server never actually stops or restarts.   And the status, in CFB's Servers view, hangs on "Stopping".

So..  got further..  but still no solution =P  (and of course Jetty can now be accessed in browser via server's IP, but no longer via localhost)

Thanks,

-Aaron

AquitaineAuthor
Inspiring
July 5, 2012

Changing the host in .xml file actually did the trick for me - it doesn't hang on 'stopping' and I am able to start/stop the server from CF builder.