# Cannot run Natural application from localhost using local runtime

**URL:** <https://techcommunity.softwareag.com/t/cannot-run-natural-application-from-localhost-using-local-runtime/171234>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, NaturalONE, NaturalONE-Full-Edition, Natural-on-Windows-Unix\
**Created:** [May 22, 2013, 5:27pm UTC](https://techcommunity.softwareag.com/t/cannot-run-natural-application-from-localhost-using-local-runtime/171234 "2013-05-22T17:27:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hubert\_Kauker1](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@Hubert\_Kauker1](https://techcommunity.softwareag.com/u/Hubert_Kauker1)\
**Post date:** [May 22, 2013, 5:27pm UTC](https://techcommunity.softwareag.com/t/cannot-run-natural-application-from-localhost-using-local-runtime/171234/1 "2013-05-22T17:27:20Z")

</div>

Hello.  
I am using a full version of ONE 8.2.6 on a Windows 7 PC with the built-in Eclipse and the integrated NaturalONE runtime (=local Natural runtime).

I have a very simple Natural “application” which just prints “Hello, world!”.

I have a Natural Project P1-NAT with a single Natural-Library P1-LIB and a single program HELLO-P.NSP .  
The project properties specify the local Natural runtime and the private development mode.  
See attachment.

The program contains the single statement PRINT ‘Hello, world!’, as I said.  
The application runs well, when ContextMenu/NaturalONE/Execute is used.  
See attachment.

I want to run it from the web browser using [b][http://localhost:8080/cisnatural[/b]](http://localhost:8080/cisnatural%5B/b%5D) :idea:

I create a new Deploy Natural Ant build file.  
I run it as an Ant Build. No errors or problems are reported.  
See attachment.

Now I open a browser window (Firefox) and load [b][http://localhost:8080/cisnatural[/b]](http://localhost:8080/cisnatural%5B/b%5D).  
I select the Logon Page link.  
I am using the Session Id Connect to Natural and type in the following parameters:  
Host name: localhost  
Port number: 2800  
User name: KAUKER  
Password: \*\*\*\*  
Application:  
Natural parameters:

And the response is:

> [@](#):
>
> connection attempt by an unknown client

See attachment.

What was done wrong?  
I am sure, I did everything I could, as the NaturalONE Help documentation says.  
Can it be a wrong password?  
Can it be the Application and Natural parameters?  
I tried a large number of different variations, all in vain, all with the same error message.

Thanks,  
Hubert

PS: I already reported the same issue in this forum using the Sample HelloWorld application.  
But the sample has an Ajax UI, so I thought I should simplify it and just PRINT something.  
Same behavior.

[P1-NAT.pdf](https://techcommunity.softwareag.com/uploads/short-url/mprDKKbDNPFWrfyDiCRGnWeR7Fp.pdf) (231 KB)

---

<div class="post-metadata">

**Author:** ![Thomas\_Schwade](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/thomas_schwade/32/131_2.png) [@Thomas\_Schwade](https://techcommunity.softwareag.com/u/Thomas_Schwade)\
**Post date:** [November 21, 2014, 10:37am UTC](https://techcommunity.softwareag.com/t/cannot-run-natural-application-from-localhost-using-local-runtime/171234/2 "2014-11-21T10:37:37Z")

</div>

> [@Hubert Kauker](#):
>
> What was done wrong?

Point is that on port 2800 an NDV server (Natural Development Server) is listening. To run a program outside Natural ONE you need an NWO server (Natural Web I/O server). Why this distinction? Well, NaturalONE is for development only, not for production.  
What you should do:

- Install Natural for Windows in parallel, including the NDV server and NWO server.
- This will be your “production environment”.
- The NDV server of that environment will typically run under 2700, the NWO server under 2900.
- In NaturalONE, configure your project so that it builds against that environment rather than the local environment. Do this by right-clicking the project, selecting ‘Properties / Natural / Runtime’ and choosing port 2700.
- Build the project.
- Now you can run the project in the browser as you tried using [http://localhost:8080/cisnatural](http://localhost:8080/cisnatural), but in the Session ID ‘Connect to Natural’ choose port 2900 (the NWO server).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:28pm UTC](https://techcommunity.softwareag.com/t/cannot-run-natural-application-from-localhost-using-local-runtime/171234/3 "2021-04-02T15:28:52Z")

</div>


