# Manual port forwarding to use REPL

**URL:** <https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711>\
**Category:** New to Julia\
**Tags:** juno, repl\
**Created:** [July 26, 2020, 1:34pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711 "2020-07-26T13:34:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SambitMishra98](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sambitmishra98/32/14263_2.png) [@SambitMishra98](https://discourse.julialang.org/u/SambitMishra98)\
**Post date:** [July 26, 2020, 1:34pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/1 "2020-07-26T13:34:36Z")

</div>

I am presently trying to use Atom editor to connect to a remote desktop server. I used the instructions from the link [https://docs.junolab.org/latest/man/remote/](https://docs.junolab.org/latest/man/remote/). I was successfully able to use `ftp-remote-edit` to remotely edit codes in the server machine (covered in Basic setup section). When I tried to do the same for REPL in my Atom editor (covered in Manual port forwarding section), I am unable to get any output. The REPL process keeps on going as shown in the figure.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/0/e0bb1d89aa0766df814ace53af1a517e277c8a3b.png)

Can anyone help?  
I am using Atom editor in Windows 10 to connect to Julia in Ubuntu 16.04.

---

<div class="post-metadata">

**Author:** ![johnh](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnh/32/3615_2.png) [@johnh](https://discourse.julialang.org/u/johnh)\
**Post date:** [July 26, 2020, 1:53pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/2 "2020-07-26T13:53:37Z")

</div>

Hello @SambitMishra98 I have Windows 10 and Ubuntu VMs available and the Atom editor.  
However I am a bit busy atht ht emoment… will try when I have a bit of time

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 26, 2020, 2:13pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/3 "2020-07-26T14:13:24Z")

</div>

Why do you need to use manual port forwarding instead of the automatic setup Juno provides for you?

---

<div class="post-metadata">

**Author:** ![SambitMishra98](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sambitmishra98/32/14263_2.png) [@SambitMishra98](https://discourse.julialang.org/u/SambitMishra98)\
**Post date:** [July 26, 2020, 3:33pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/4 "2020-07-26T15:33:13Z")

</div>

I didn’t get you. What do you mean by ‘automatic setup’?  
I have a desktop server in the office which has 20 cores and a GPU. While I code in Julia, I check if each of the lines work using REPL. For example, I want to run the codes given in [https://juliagpu.gitlab.io/CUDA.jl/tutorials/introduction/](https://juliagpu.gitlab.io/CUDA.jl/tutorials/introduction/) this way.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 26, 2020, 3:35pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/5 "2020-07-26T15:35:03Z")

</div>

Just follow the instructions at [Connecting to a Julia session on a remote machine · Juno Documentation](https://docs.junolab.org/latest/man/remote/#Basic-setup-1) instead of those at [Connecting to a Julia session on a remote machine · Juno Documentation](https://docs.junolab.org/latest/man/remote/#Manual-port-forwarding-1).

---

<div class="post-metadata">

**Author:** ![SambitMishra98](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sambitmishra98/32/14263_2.png) [@SambitMishra98](https://discourse.julialang.org/u/SambitMishra98)\
**Post date:** [July 26, 2020, 3:44pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/6 "2020-07-26T15:44:16Z")

</div>

Yes, I did that. I was able to connect to the remote server for editing the files only. As you can see in the image below, I am connected to the i9quadro desktop server and am able to run the programs using Julia in the terminal below. I am however not able to run individual lines of code this way by pressing `Ctrl+Enter`. Based on the tutorial, this is possible if I do the manual port forwarding. Am I missing something trivial here?

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/6/0659be61e05fdbfdbba5021b8d9da46f6b66a953.png)

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 26, 2020, 4:13pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/7 "2020-07-26T16:13:45Z")

</div>

Did you make sure to start the remote REPL as instructed? It should open a `REPL @ i9quadro` tab.

---

<div class="post-metadata">

**Author:** ![SambitMishra98](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sambitmishra98/32/14263_2.png) [@SambitMishra98](https://discourse.julialang.org/u/SambitMishra98)\
**Post date:** [July 26, 2020, 4:59pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/8 "2020-07-26T16:59:38Z")

</div>

Yea I followed the instructions blindly, and it didn’t work. I then tried to read up on each of the instructions and couldn’t get anywhere. Based on the screenshots in the link I realised I am supposed to get a `REPL @ i9quadro` tab, but I couldn’t get it.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 26, 2020, 5:02pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/9 "2020-07-26T17:02:16Z")

</div>

What happens when you execute the `Start Remote Julia Process` command (either from the command pane or the toolbar)?

---

<div class="post-metadata">

**Author:** ![SambitMishra98](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sambitmishra98/32/14263_2.png) [@SambitMishra98](https://discourse.julialang.org/u/SambitMishra98)\
**Post date:** [July 26, 2020, 5:08pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/10 "2020-07-26T17:08:00Z")

</div>

YESSSSS !!! IT WORKED !!! THANKS A LOT !!!

I probably did not realise that it was working and had skipped that 😭

Thanks a lot @pfitzseb !!!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [July 26, 2020, 5:09pm UTC](https://discourse.julialang.org/t/manual-port-forwarding-to-use-repl/43711/11 "2020-07-26T17:09:48Z")

</div>

Great, glad it’s working for you 🙂
