--------- Original Message ---------
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/47dc21b3-5cc8-4e30-9a73-60059cbeb95e%40ortussolutions.com.
For more options, visit https://groups.google.com/a/ortussolutions.com/d/optout.
""C:\Program Files\Java\jre1.8.0_20\bin\java.exe" -Drailo.web.config.dir="C:\Users\don/.CommandBox/server//custom/checkup" -Drailo.server.config.dir="C:\Users\don/.CommandBox/server/" -javaagent:"C:\Users\don/.CommandBox/lib/railo-inst.jar" -jar "C:\Users\don\.CommandBox\lib\runwar-2.0.7.jar" -war "C:\Users\don\Desktop\webcrap\checkup" --background=false --port 56000 --host 192.168.1.100 --debug false --stop-port 56001 --processname "checkup" --log-dir "C:\Users\don/.CommandBox/server//custom/checkup/log" --open-browser true --open-url http://192.168.1.100:56000 --libdir "C:\Users\don/.CommandBox/lib" --iconpath "C:\Users\don/.CommandBox/lib/trayicon.png""
*******************************************************************
*** starting 'stop' listener thread - Host: 127.0.0.1 - Socket: 56001
*******************************************************************
Server is up - http-port:56000 stop-port:56001 PID:1376
2014-11-19 23:58:47 INFO org.xnio.Xnio <clinit> XNIO version 3.2.0.Final
2014-11-19 23:58:47 INFO org.xnio.nio.NioXnio <clinit> XNIO NIO Implementation Version 3.2.0.Final
Waiting upto 35 seconds for 192.168.1.100:56000...
could not open browser to...http://192.168.1.100:56000... timeout...
--------- Original Message ---------
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/7c582a87-4525-4992-8e3f-69430ad0af9c%40ortussolutions.com.
Waiting upto 35 seconds for 192.168.1.100:56000...
--------- Original Message ---------
Subject: Re: Bind to specific interface / IP address.
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546E7BCA.1030005%40gmail.com.
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/a6a77117-7331-4b1a-b739-7b9a7cc20897%40ortussolutions.com.
--------- Original Message ---------
Subject: Re: Bind to specific interface / IP address.
From: "Don Quist" <don.sigm...@gmail.com>
Date: 11/20/14 6:55 pm
To: comma...@ortussolutions.com
Cc: don.sigm...@gmail.com
My previous assumption was correct: Trying to stop the server fails because of the hardcoded 127.0.0.1 here: https://github.com/Ortus-Solutions/runwar/blob/master/src/runwar/Stop.java#L12
because https://github.com/Ortus-Solutions/runwar/blob/master/src/runwar/options/CommandLineHandler.java#L284 doesn't pass the host argument, just the port. But it's the same in the parent project from cfmlprojects
(Limited java experience, take my findings with a grain of salt.)
On Thursday, November 20, 2014 3:57:12 PM UTC-8, Brad Wood wrote:
Excellent news. I checked my lib folder and I also had an outdated jar which is probably why my test didn't work either.
We'll need to figure out an update mechanism to handler updates outside of the CFML directory. One of my ideas was to code the upgradecommand to only work on dot releases, and bump a major version any time the libs got updated. Then, enhance the binary to auto-extract itself when it's newer.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/d1576c74-0be4-40f9-89a9-dbe9e54872d1%40ortussolutions.com.
Actually the stop socket is different than the httpport, so that should be 127. What happens when you try to stop? Can you try runwar alone and see if it works there? You should be able to basically use the same args displayed from commandbox.
:Denny
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/20141120180025.a7243acce6934569d3743d1abfb94fec.3c945cdd63.mailapi%40email05.secureserver.net.
c:\>"C:\Program Files\Java\jre1.8.0_20\bin\java.exe" -Drailo.web.config.dir="C:\Users\don/.CommandBox/server//custom/checkup1" -Drailo.server.config.dir="C:\Use
rs\don/.CommandBox/server/" -javaagent:"C:\Users\don/.CommandBox/lib/railo-inst.jar" -jar "C:\Users\don\.CommandBox\lib\runwar-2.2.0.jar" -war "C:\Users\don\Des
ktop\webcrap\checkup1" --background=false --port 56000 --host 192.168.1.100 --debug false --stop-port 56001 --processname "checkup" --log-dir "C:\Users\don/.Com
mandBox/server//custom/checkup/log" --open-browser true --open-url http://192.168.1.100:56000 --libdir "C:\Users\don/.CommandBox/lib" --iconpath "C:\Users\don/.
CommandBox/lib/trayicon.png"
2014-11-20 17:33:31 WARN RunwarLogger no attach in java.library.path
******************************************************************************
Starting - port:56000 stop-port:56001 warpath:file:/C:/Users/don/Desktop/webcrap/checkup1/
context: / - version: 2.2.0
web-dirs: C:\Users\don\Desktop\webcrap\checkup1
Log Directory: C:\Users\don\.CommandBox\server\custom\checkup\log
******************************************************************************
railo-server-root:C:\Users\don\.CommandBox\engine\railo\railo-server
===================================================================
SERVER CONTEXT
-------------------------------------------------------------------
- config:C:\Users\don\.CommandBox\engine\railo\railo-server\context
- loader-version:4.3
===================================================================
Thu Nov 20 17:33:31 PST 2014-740 using JRE Date Library
Thu Nov 20 17:33:32 PST 2014-143 Start CFML Controller
Thu Nov 20 17:33:32 PST 2014 Loaded Railo Version 4.2.1.008
===================================================================
WEB CONTEXT (05e06cfe06390db7f6f22abedf96e337)
-------------------------------------------------------------------
- config:C:\Users\don\.CommandBox\engine\railo\railo-web (custom setting)
- webroot:C:\Users\don\Desktop\webcrap\checkup1\
- hash:05e06cfe06390db7f6f22abedf96e337
- label:05e06cfe06390db7f6f22abedf96e337
===================================================================
******************************************************************************
*** starting 'stop' listener thread - Host: 192.168.1.100 - Socket: 56001
******************************************************************************
Server is up - http-port:56000 stop-port:56001 PID:3588 version 2.2.0
2014-11-20 17:33:32 INFO org.xnio XNIO version 3.3.0.Beta4
2014-11-20 17:33:32 INFO org.xnio.nio XNIO NIO Implementation Version 3.3.0.Beta4
Waiting upto 35 seconds for 192.168.1.100:56000...
Opening browser to...http://192.168.1.100:56000
http://192.168.1.100:56000
Thu Nov 20 17:33:35 PST 2014-653 java.lang.instrument.Instrumentation is used to reload class files
c:\>"C:\Program Files\Java\jre1.8.0_20\bin\java.exe" -jar "C:\Users\don\.CommandBox\lib\runwar-2.2.0.jar" -stop --stop-port 56001 --background false --debug true
Could not stop server. Are you sure it is running, and listing for stop requests on port 56001?
I think that's a typo, it needs the stop-socket argument. See if runwar -? lists the correct parameters to use.
:Denny
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/1b184354-6ad0-4d47-90b0-50045ba352d1%40ortussolutions.com.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+unsubscribe@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/1b184354-6ad0-4d47-90b0-50045ba352d1%40ortussolutions.com.
For more options, visit https://groups.google.com/a/ortussolutions.com/d/optout.
Alright, I applied your changes Don, they're in runwar 2.2.1 if you wantto give it a spin and check.
The pull request was against a fork, so I had to grab the commit vs.using that pull (which can be closed now if it's working).Oh darn. Now I remember why it was supposed to be locked to localhost--without a password as well, anyone can shut down the server by hittingthat port. The other thing I did remember, but wasn't too concernedabout, was that interfaces besides localhost can get into states thatwon't let you "talk" to them, potentially starting servers without beingable to stop them. I think time would tell if that would be much of aproblem, but having the server stop when someone portscans it is. Fornow we'll leave it be, but we need a password, the channel should beover ssl probably, etc.. Thanks for your contribution, and do you haveany input on the password deal? I'm open so suggestions.
:DennyOn 11/21/2014 12:12 AM, Don Quist wrote:Nevermind, I found the build target. Tested my compiled runwar-2.2.0.jar -stopping the server works as expected if you pass the -host param:"C:\Program Files\Java\jre1.8.0_20\bin\java.exe" -jar"C:\Users\don\.CommandBox\lib\runwar-2.2.0.jar" -stop --stop-port 56001--background false --debug true *-host x.x.x.x*Please accept the pull request.
--You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546F7814.7080406%40gmail.com.
ColdBox Platform: http://www.coldbox.org
ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox
--------- Original Message ---------
Subject: Re: Bind to specific interface / IP address.
--------- Original Message ---------
Subject: Re: Bind to specific interface / IP address.
--------- Original Message ---------
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/20141121112400.a7243acce6934569d3743d1abfb94fec.b41c0fceec.mailapi%40email05.secureserver.net.
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546F8A19.20402%40gmail.com.
For more options, visit https://groups.google.com/a/ortussolutions.com/d/optout.
--------- Original Message ---------
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546F885C.7090301%40gmail.com.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/20141121115908.a7243acce6934569d3743d1abfb94fec.4c143a25cd.mailapi%40email05.secureserver.net.
> Generally, if they find an open port they immediately try to do stuff
> with it, and a carriage return isn't exactly unique. :)
Well, there's a difference between saying "a portscan will shutdown the server" and saying a person with malicious intent "can easily guess how to shut down the server'
Is the carriage return just how Undertow works, or is there Java code somewhere that you wrote that is the listener?
--------- Original Message ---------
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546F8A19.20402%40gmail.com.
--------- Original Message ---------
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/CAALP6duCLS-m2Yi4z%2Bpfed-5vrcAF3RSfAZN1%2B33MWooZgUvsQ%40mail.gmail.com.
And this way doesn't even have to concern commandbox, so it doesn't have to get messy there.
:Denny
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546F9D5E.6070202%40gmail.com.
For more options, visit https://groups.google.com/a/ortussolutions.com/d/optout.
--------- Original Message ---------
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/20141121133907.a7243acce6934569d3743d1abfb94fec.88f07159c5.mailapi%40email05.secureserver.net.
--
You received this message because you are subscribed to the Google Groups "CommandBox" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandbox+...@ortussolutions.com.
To post to this group, send email to comma...@ortussolutions.com.
Visit this group at http://groups.google.com/a/ortussolutions.com/group/commandbox/.
To view this discussion on the web visit https://groups.google.com/a/ortussolutions.com/d/msgid/commandbox/546FB6BF.10106%40gmail.com.