Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing my laptop from anywhere 1

Status
Not open for further replies.

djessi

IS-IT--Management
Dec 29, 2006
93
CM
Hi all,
I am accessing internet with my local address 192.168.50.67
via the default gateway 192.168.50.254 and using 192.168.50.1 as first DNS and 41.223.48.6 (provider) as second DNS. What is the easy thing to do to access my laptop (local 192.168.50.67)from anywhere with http.
Thanks for help
Djessi
 
What OS are you running? What type of router are you using? Is the default gateway your router or a firewall device?
 
Basically your ISP will have to allow inbound traffic on port 80, and you have to set your router/firewall up to also allow inbound port 80 traffic. You'll then use NAT (network address translation) on your router/firewall for port 80 and point it to your laptop's internal IP address.

Good luck,
 
Thanks for your answers.
I am using RedHat Linux, the router is a Cisco 1721 and my default gateway is the router internal (lan) address.
Cordialy
Djessi
 
router>en
router#conf t
router(config)#ip nat inside source static tcp 192.168.50.67 80 int (whatever interface is facing the outside on the router) 80

That's how you statically nat from the outside public IP to the inside private IP on the Cisco.

Burt
 
Make sure you plan this out carefully, for you do not want uninvited guests to access your laptop. Port 80 is the common web server port and a lot of users keep it open. No matter how you go about it, you are leaving a door open-- so it may be a better choice to have a login, etc. to at least add some security.

Maria Santella
Technical Sales Engineer
ICP DAS USA
 
Thanks Maria,
What I did not ask to Burt is the reverse commands
to unconfigure the nating, in that event.
Regards
Djessi
 
It would be the "no" form of the command...
router(config)#no p nat inside source static tcp 192.168.50.67 80 int (whatever interface is facing the outside on the router) 80

You can map it to any tcp port not in use, like 8876 or something, but make sure the port mapping applies to the application (like Windows web server) also.
If you use CBAC in the Cisco, you would also have to update the PAM database in the router for non-default ports.

Burt
 
I use realvnc, by default port for http:// is 5801 I port forward 5801 to the static ip of my laptop. To access the laptop remotely I just type ip:5801/ I have sites where I have 3 PC's I access remotely I assign and port forward 5801, 5802, 5803 to the different PC's.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top