Click to See Complete Forum and Search --> : access pc behind server
i have 2 pc's networked at home
DesktopPC(XP, connected to the net) -----> laptop (mandrake)
the desktop pc is 192.168.0.1
the laptop pc is 192.168.0.2
if im at a friends house, how can i VNC or SSH to the laptop pc??
dysharmonic
06-18-2003, 09:08 AM
This (http://discussions.hardwarecentral.com/showthread.php?s=&postid=804538#post804538) should give you some lead.
The Whizzard
06-18-2003, 09:10 AM
First the box that has the i-net conn needs to IPMASQ/portforward the i-net conn to your LAN.
Then for VNC forward ports 5800-5804 and 5900-5904 to the internal box.
VNC uses ports 5900 - 59xx for the VNC client. Where xx is the display number. 5901 for example enables display 1. Ports
5800 - 58xx are used for web (JAVA) based client in the same way. This mapping enables the first 5 ports for each
client.
For SSH, you just need to forward port 25 to the internal box.
homey
06-18-2003, 09:18 AM
For SSH, you just need to forward port 25 to the internal box.
Make that port 22 instead! :)
For example...
IPT="/sbin/iptables"
INT="eth0"
$IPT -A INPUT -i $INT -s 200.123.10.2 -d 0/0 -p tcp --dport 22 -j ACCEPT
The Whizzard
06-18-2003, 09:23 AM
Originally posted by homey
Make that port 22 instead! :)
For example...
IPT="/sbin/iptables"
INT="eth0"
$IPT -A INPUT -i $INT -s 200.123.10.2 -d 0/0 -p tcp --dport 22 -j ACCEPT Doh!!! Damn email server........Yea, port 22 is SSH. 25 is SMTP
so your saying that i can connect to my servers ip as long as the port 22 on the server is forwarded to my laptop..
how can this be done in XP? coz thats what the desktop is usin
homey
06-18-2003, 09:39 AM
I would remove XP and install Redhat. Then setup iptables on the Redhat box. :) :) Just kidding.
XP may have port forwarding in My Network Places / Properties but I'm not sure. :(
Or you could use a router such as Linksys and setup port forwarding on it.
The Whizzard
06-18-2003, 09:40 AM
Not sure about XP But in Win2k:
Start>>Settings>>Controll Panel
Click on Network and Dial-up Connections
Right-click on your NIC card
Click the Sharing tab
Click the Enable Internet Connection Sharing box
Click Settings
Click Add under the Applications tab
Then enter your desired settings.
BTW, I wouldn't use Win2k to share the internet....It is slow as molasses.
ven0m
06-18-2003, 09:55 AM
Yeah XP does have port forwarding but it's not called that.
It's in you nic properties>Advanced>Settings (a button at the bottom of the advanced tab).
Then you'll get a new window called services, create a new service and add your ip and port number in there. (just make sure your firewall does not block it)