d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Any Way To Forward Ports Without Access To Router
Add Reply New Topic New Poll
Member
Posts: 24,964
Joined: Nov 2 2011
Gold: 30.00
Feb 24 2017 06:09am
Looking for some help , tried the programs they give online for this but still no success .
Member
Posts: 36,389
Joined: Jul 18 2008
Gold: 3,192.00
Feb 24 2017 07:01am
Depends on what you want to do. Are you looking to forward ports on a host to a guest vm? This can be accomplished in iptables.
Member
Posts: 24,964
Joined: Nov 2 2011
Gold: 30.00
Feb 24 2017 07:36am
Quote (Mastersam93 @ Feb 24 2017 08:01am)
Depends on what you want to do. Are you looking to forward ports on a host to a guest vm? This can be accomplished in iptables.



Im simply hosting a webpage on my own localhost:8080

And I want to show it online
Member
Posts: 36,389
Joined: Jul 18 2008
Gold: 3,192.00
Feb 24 2017 10:54am
Quote (TheTamer @ Feb 24 2017 08:36am)
Im simply hosting a webpage on my own localhost:8080

And I want to show it online



You're not going to be able to go that without admin rights to the router because your computer is not publicly routable to the web. And even if you had them, some ISPs block incoming http requests, etc, to households.

Imo, best case is to see if you can get a vm on AWS or something similar on their free tier.
Member
Posts: 5,167
Joined: Nov 23 2006
Gold: 11.01
Feb 28 2017 08:35am
You won't be able to do it without access to the router. Even then like Mastersam93 said, some ISPs block those incoming requests or increase your charge.

You can host a site pretty darn cheap on AWS/digitalocean/godaddy/etc.
Member
Posts: 13,425
Joined: Sep 29 2007
Gold: 0.00
Warn: 20%
Feb 28 2017 09:43am
Yes there is a way.

Use ssh to create a reverse tunnel from your computer on port 8080 to remote port 80 on a server running sshd.

Since most firewalls unless properly configured allow outgoing connections and TCP is a bidirectional socket protocol you can simply initiate a remote connection outside your network and proxy requests into it.

This would also bypass any ISP restrictions.

Do note you may need some intermediate software installed to forward requests to and from the ssh tunnel.

This post was edited by AbDuCt on Feb 28 2017 09:49am
Member
Posts: 920
Joined: Apr 23 2008
Gold: 3,197.00
Mar 15 2017 05:57pm
https://ngrok.com/

This post was edited by taky on Mar 15 2017 05:57pm
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll