Click here to Skip to main content
14,547,127 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Remote access recommendations Pin
dandy7224-Jan-20 10:43
Memberdandy7224-Jan-20 10:43 
GeneralRe: Remote access recommendations Pin
pkfox24-Jan-20 21:48
professionalpkfox24-Jan-20 21:48 
GeneralRe: Remote access recommendations Pin
Randor 24-Jan-20 8:14
professional Randor 24-Jan-20 8:14 
GeneralRe: Remote access recommendations Pin
Southmountain24-Jan-20 8:23
MemberSouthmountain24-Jan-20 8:23 
GeneralRe: Remote access recommendations Pin
pkfox24-Jan-20 21:47
professionalpkfox24-Jan-20 21:47 
GeneralRe: Remote access recommendations Pin
CCostaT27-Jan-20 4:05
MemberCCostaT27-Jan-20 4:05 
GeneralRe: Remote access recommendations Pin
pkfox27-Jan-20 11:23
professionalpkfox27-Jan-20 11:23 
GeneralRe: Remote access recommendations Pin
CCostaT27-Jan-20 23:17
MemberCCostaT27-Jan-20 23:17 
Hi!

In that case you have 2 options. The one I use is to configure your router to portforward an external port (say port 12345) to port 22 to you linux server. Then just use PuTTY on windows (or JuiceSSH on Android. I use both) to connect to <router_public_ip>:12345 as a reverse proxy.
PuTTY, in turn, will open local port 5432 on your windows laptop/home computer.

If you don't want or can't use portforward (e.g. the external IP of your router changes a lot), you have a second option. You can use something like SSHReach.me[^] . It works the same way but it's easier to setup. Then you just connect to their servers instead of your router.

After this is setup, make your WinForms app connect to localhost:5432 and it will work. The beauty of this is that PostgreSQL thinks you are connecting from localhost so you don't need to send your password.

I'm not sure if it's easier then setting up a VPN but for programming it provides (IMO) a lot more flexibility and (maybe) security then a VPN.

I'll see if I can send you my PuTTY configuration when I get home.

If all this is a little confusing (it was for me) take a look at this SO answer: networking - How does reverse SSH tunneling work? - Unix & Linux Stack Exchange[^] .
GeneralRe: Remote access recommendations Pin
pkfox28-Jan-20 8:42
professionalpkfox28-Jan-20 8:42 
GeneralRe: Remote access recommendations Pin
CCostaT28-Jan-20 22:29
MemberCCostaT28-Jan-20 22:29 
GeneralRe: Remote access recommendations Pin
pkfox29-Jan-20 7:33
professionalpkfox29-Jan-20 7:33 
GeneralRe: Remote access recommendations Pin
CCostaT29-Jan-20 23:49
MemberCCostaT29-Jan-20 23:49 
GeneralRe: Remote access recommendations Pin
pkfox31-Jan-20 6:29
professionalpkfox31-Jan-20 6:29 
GeneralRe: Remote access recommendations Pin
CCostaT2-Feb-20 22:31
MemberCCostaT2-Feb-20 22:31 
GeneralRe: Remote access recommendations Pin
pkfox3-Feb-20 2:18
professionalpkfox3-Feb-20 2:18 
GeneralRe: Remote access recommendations Pin
CCostaT3-Feb-20 22:42
MemberCCostaT3-Feb-20 22:42 
GeneralRe: Remote access recommendations Pin
pkfox4-Feb-20 10:11
professionalpkfox4-Feb-20 10:11 
GeneralRe: Remote access recommendations Pin
CCostaT4-Feb-20 22:37
MemberCCostaT4-Feb-20 22:37 
GeneralRe: Remote access recommendations Pin
pmauriks12-Feb-20 19:49
Memberpmauriks12-Feb-20 19:49 
GeneralThought of the Day Pin
OriginalGriff24-Jan-20 4:42
mveOriginalGriff24-Jan-20 4:42 
GeneralRe: Thought of the Day Pin
DRHuff24-Jan-20 4:57
MemberDRHuff24-Jan-20 4:57 
GeneralRe: Thought of the Day Pin
W Balboos, GHB24-Jan-20 4:58
mveW Balboos, GHB24-Jan-20 4:58 
GeneralRe: Thought of the Day Pin
honey the codewitch24-Jan-20 5:36
mvahoney the codewitch24-Jan-20 5:36 
GeneralRe: Thought of the Day Pin
Mark_Wallace24-Jan-20 7:10
MemberMark_Wallace24-Jan-20 7:10 
GeneralMy cat has so many tiny adorable opinions Pin
honey the codewitch24-Jan-20 4:35
mvahoney the codewitch24-Jan-20 4:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.