balena-minecraft-server icon indicating copy to clipboard operation
balena-minecraft-server copied to clipboard

Trying to connect to the SCP server outside of the local network

Open EvilNick2 opened this issue 6 years ago • 7 comments

I've been trying for hours to allow SCP connections to my Pi for hours and am having no luck with it. Every time I try and connect it the connection just times out. Anyone have any idea why?

EvilNick2 avatar Oct 29 '20 05:10 EvilNick2

Issue-Label Bot is automatically applying the label question to this issue, with a confidence of 0.86. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 29 '20 05:10 issue-label-bot[bot]

@EvilNick2 what credentials did you put in for login?

AlexProgrammerDE avatar Oct 29 '20 06:10 AlexProgrammerDE

I put in my public ip and the port that the SCP server is opened on. I'm not sure if I need to find the public ip of the Pi itself and if I do I don't know how to do that

EvilNick2 avatar Oct 29 '20 10:10 EvilNick2

Related post from myself: Right here

I put in my public ip and the port that the SCP server is opened on. I'm not sure if I need to find the public ip of the Pi itself and if I do I don't know how to do that

  1. To get the public IP of your pi, start a terminam session on your OS-System (can be done over the balena dashbaord webpage) and enter the following command: curl icanhazip.com The output will be your Pi's public IP

  2. You now need to configure your router so that all traffic coming from your Pi's public IP on port 22 gets redirected to your internal port 22.

Once that's set up, you should be ready to go!

MadMowgli avatar Oct 29 '20 19:10 MadMowgli

@MadMowgli I've got the public IP of my Pi but I'm not sure how to do the second part of your post

EvilNick2 avatar Oct 29 '20 20:10 EvilNick2

@EvilNick2 terrible sorry for the late answer. Check out this wholesome tutorial about port-forwarding from NoIp. Let me know if you're having any struggles with it.

MadMowgli avatar Nov 16 '20 16:11 MadMowgli

Closing due to inactivity. The short solution is to just get the public ip of the pi, ip forward it and use noip to use it in a hostname.

AlexProgrammerDE avatar Dec 02 '20 15:12 AlexProgrammerDE