Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am not exactly sure what the best solution would be for this problem, but

I have a VPS with 3 ips. I have a unix system behind a home router with no ports forwarded. I want to be able to access myVPSIP:25566 and get the data on the internal system.

myVPS ---> internal system

How do I go about doing this, I have tried reverse tunneling. If the minecraft server part causes confusion, here is an alternate example that will accomplish the same task.

I have a web server on a computer inside a home network. It cannot get incoming connections, so I purchased a VPS, and it has an IP. I wish to be able to access the web server via the VPS IP. I have tried reverse SSH Tunnel, but am unsure why it does not work.

here is the command I used

ssh -f -R 25566:127.0.0.1:25566 root@myvps -N

share|improve this question

migrated from stackoverflow.com Jul 16 '12 at 1:53

This question came from our site for professional and enthusiast programmers.

    
Run netstat -l --inet on the vps. What's the output? Does it show tcp port 25566 being forwarded? –  dave4420 Jul 15 '12 at 17:08
    
Are you sure you need to forward only tcp port 25566 and not instead/also udp port 25566? –  dave4420 Jul 15 '12 at 17:08
    
TCP only, and I'll give it a shot in just a couple minutes, don't have access atm –  macintosh264 Jul 15 '12 at 17:53
    
tcp 0 0 :25565 *: LISTEN –  macintosh264 Jul 15 '12 at 17:57
    
Are you trying to forward tcp port 25565 or 25566? Or both? You say 25565 in your comment above, but 25566 in your question. –  dave4420 Jul 16 '12 at 8:35
add comment

1 Answer 1

Your command syntax seems fine; the problem is that you probably have absolutely nothing running on port 25566 on your home computer.

Most likely you meant to access some other service on your home computer. I see that you said you wanted to access the web server. In that case, you would forward to port 80:

ssh -f -R 25566:127.0.0.1:80 root@myvps -N

If you wanted to access something else, change 80 to whatever port number the desired service runs on.

Keep in mind that links on your home web server will not work, since it's assuming you'll be coming in on port 80 rather than 25566.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.