DEV Community

Discussion on: Let's Talk Windows vs macOS

Collapse
 
tnypxl profile image
tnypxl

I've moved all of my personal hobby software development to a digital ocean droplet. I combine it with Mosh and Ngrok which allows me to use just about anything to write code anywhere there is an internet connection.

For design stuff, I just use Figma.

But if I had to bootstrap things on a local machine, I'd prefer Mac, Windows second, and Ubuntu last.

Collapse
 
restoreddev profile image
Andrew Davis

That’s an interesting approach. How do you write code on the server? Using a cloud editor?

Collapse
 
tnypxl profile image
tnypxl

VS Code has a remote development plugin that lets you bootstrap to docker containers, WSL distros, or a VPS via SSH. Its pretty slick honestly.

There are several Code Editors on iPadOS which integrate SSH. I’m still working out kinks for a decent workflow there. I’m also trying to learn some basic Vim and then using something like SpaceVim or some other IDE-ish Vim setup.

Collapse
 
pradeepprakash profile image
pradeepprakash

Hi, I bumped into your post during a search on how to make mosh + ngrok work. I see that you have done it.
Could you please help with the steps? ngrok doesn't support UDP right? So how is mosh able to communicate?

Collapse
 
tnypxl profile image
tnypxl

Ngrok simply exposes your local machines ports via ngrok's servers. Mosh doesn't impact how that works in any way.

Mosh is better compared to SSH.

Thread Thread
 
pradeepprakash profile image
pradeepprakash

Yes, I use mosh all the time. But had never used it with ngrok. I noticed that ngrok(free account) is not treating UDP at all , which mosh uses after the initial ssh on 22. And hence mosh client never sees a connection post that. The same works when I use a dynamic dns to reach my box from external world.

Thread Thread
 
tnypxl profile image
tnypxl

So long as the port you're using is accessible to ngrok, what Mosh sends back and forth doesn't matter.