Deploy.Bat doesnt work for Standalone Server

I am trying to deploy some business logic to my Backendless server, it works perfectly in my test enviroment (192.168.x.x locally hosted server) but, when i try to deploy the production version (i downloaded the zip, from the production server, updated it etc) the deploy.bat crashes every time and im not sure why.

i’m hosting backendless on an amazon aws instance, i’ve opened ports 7736 and 7738 to my ip address, but still it wont work, below is the error im getting from the console, any help is greatly appreciated!

C:\Users****\Desktop\Backendless Prductions\TWICTrak\bin>Deploy.bat
Starting CodeRunner
Listening for transport dt_socket at address: 5005
Exception in thread “main” java.lang.RuntimeException: com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7737 [/127.0.0.1] failed: Connection refused: connect
at com.backendless.coderunner.config.RemoteConfigProvider.retrieveHosts(RemoteConfigProvider.java:32)
at com.backendless.coderunner.config.RemoteConfigProvider.<init>(RemoteConfigProvider.java:15)
at com.backendless.coderunner.config.Config.init(Config.java:25)
at com.backendless.coderunner.CodeRunnerLoader.main(CodeRunnerLoader.java:34)
Caused by: com.mashape.unirest.http.exceptions.UnirestException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7737 [/127.0.0.1] failed: Connection refused: connect
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:146)
at com.mashape.unirest.request.BaseRequest.asJson(BaseRequest.java:68)
at com.backendless.coderunner.config.RemoteConfigProvider.retrieveHosts(RemoteConfigProvider.java:27)
… 3 more
Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:7737 [/127.0.0.1] failed: Connection refused: connect
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:319)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:363)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:219)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:195)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:86)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at com.mashape.unirest.http.HttpClientHelper.request(HttpClientHelper.java:141)
… 5 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:72)
at org.apache.http.impl.conn.HttpClientConnectionOperator.connect(HttpClientConnectionOperator.java:125)
… 16 more

Ok, so after a bit of searching around, i updated the coderunner to the latest version from the backendless website, and that fixed the issue!