Results 1 to 10 of 10

Thread: Two computers, one ip, one port.

  1. #1
    Member registered user
    Join Date
    Jul 2003
    Posts
    32

    Two computers, one ip, one port.

    Well, the thread subject basically says it all.

    I have a router that routes my internet connection to my linux server and my winxp desktop.
    From school, the only port that's open is port 25, so it's the only way i can connect to my home computer. Right now, I set up my router to forward port 25 to my desktop's Remote Desktop Connection, and i can connect from there.
    The problem is, I'd like to share that port with linux, so I can also SSH into the computer remotely. It'd be much simpler sometimes, and a lot faster, than RDC'ing in to my desktop.

    I know there's no way to do what I mentioned with ONE ip, but I also have about 5 domains pointing to my IP by using free dns records (they're not subdomains, they're domains using free dynamic dns records).

    I know apache is able to understand what domain the request is coming from, but is there a way to make it so if I request information from domainX.com I'd connect to my home computer, and if i connect from domainY.com, i'd SSH into my server?

    (Maybe some kind of port forwarding in the linux box)

    Thank you very much, and if there IS an answer, try making it easy to understand, I'm kind of a noob at linux.

    Thank you again.

    Hernan

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441

    Re: Two computers, one ip, one port.

    Quote Originally Posted by hernan
    ...From school, the only port that's open is port 25, so it's the only way i can connect to my home computer.....
    Are you sure of this? It sounds pretty strange. Port 25 frequently is blocked (since some service providers consider it abused by spammers and make an overkill move of completely blocking it except to their own news server). But for your school to block all other ports from the school would imply that you couldn't even access a website (port 80 as well as several other ports). In fact, about the only thing you could do with your network would be to send out lots of e-mail. I rather suspect that other ports are open, and if that's the case then there are lots of ways you could deal with this. Even if only 80 were also open, many brands of routers will let you manage them remotely, and while they usually default to port 8080, you should be able to move the management of the router to port 80 if you really have to.

  3. #3
    Member registered user
    Join Date
    Jul 2003
    Posts
    32
    I'm pretty sure that's how it works, port 80 is redirected through a gateway. Port 25 is the ONLY port that's open, not restricted.

    I know this because I changed my port to 25 in my windows box (RDC) and I'm able to connect to it from there.
    And if I want to use AIM, every time I open the client, I have to change the port it uses to 25.

    Also, my router is a Microsoft Base Station, and the piece of crap will drop the internet connection if I make any modification to its settings.

    One last thing, and this proves all the other ports are blocked at my school: HTTPS is blocked because port 443 isn't open.

  4. #4
    Member registered user
    Join Date
    Jul 2003
    Posts
    32
    Here's a mini diagram I just made

    [img=http://img52.exs.cx/img52/2646/diagram8wx.th.jpg]

  5. #5
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by hernan
    One last thing, and this proves all the other ports are blocked at my school: HTTPS is blocked because port 443 isn't open.
    Well, no, port 443 blocked means port 443 is blocked. It doesn't prove all other ports are blocked, and certainly doesn't prove all ports except 25 are blocked. Maybe they are, but your statement "this proves all the other ports are blocked" doesn't seem to be valid.

    Quote Originally Posted by hernan
    Also, my router is a Microsoft Base Station, and the piece of crap will drop the internet connection if I make any modification to its settings.
    AH, shows pretty much their understanding of remote management, eh?

    Why do you believe that port 25 is the only one open? If port 25 is open, then I would certainly expect port 110 to be open (I would expect it to be open even if 25 was not).

  6. #6
    Member registered user
    Join Date
    Jul 2003
    Posts
    32
    Well, 25 is the only port that seems to work, maybe I should do a port scan.

  7. #7
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by hernan
    Well, 25 is the only port that seems to work, maybe I should do a port scan.
    Or maybe just try to access an e-mail server outside of the school network, as that's the normal use of port 110. I still have no idea why you think all ports are closed except 25 is open.

  8. #8
    Senior Member registered user
    Join Date
    Oct 2004
    Location
    london town
    Posts
    220
    i dont not understand what you mean port 25 is open, from my understanding of how ports work. if a port is open that indicates that a service is running, not that there will no restriction on the useage of that port for means of remote connection.

    if you can visit https://login.passport.com or what ever msns log in page is then the useage of 443 as a remote port is not blocked.


    as for using linux as a dns server i suggest using your routers NAT feature for this.

  9. #9
    Member registered user
    Join Date
    Jul 2003
    Posts
    32
    Guys, I just did a port scan from a school computer, and I found more ports that are not blocked. I guess I will just use one of those
    Thank you both for your help anyway.


    Hernan

  10. #10
    Senior Member registered user
    Join Date
    Oct 2004
    Location
    london town
    Posts
    220
    what other ports can you use?

    i think your mixing up what a port actuly is. if i was to do a port scan on my router and find that port 80 wasnt up then this means that there is no webserver running it does not mean i cant go to www.google.com which listerns on port 80 it just means theres no web server running on that port.

    so if you port scan your gateway and find open ports this does not mean these are the remote ports you should use to connect to other machines or local ports that you should use to connect to other machine it just means theres services runing on them ports

Similar Threads

  1. Knoppix for 64 bit computers.
    By ku637 in forum General Support
    Replies: 3
    Last Post: 07-06-2006, 08:26 AM
  2. Own 2 computers, can only boot from 1
    By sandgroper in forum General Support
    Replies: 1
    Last Post: 01-28-2006, 01:36 PM
  3. New to computers and new to Linux
    By smileeb in forum General Support
    Replies: 9
    Last Post: 01-15-2005, 05:48 AM
  4. How to get a list of parrallel port and serial port?
    By kn2user in forum General Support
    Replies: 0
    Last Post: 12-06-2004, 06:43 PM
  5. I need help networking my 2 computers
    By bob58 in forum Networking
    Replies: 43
    Last Post: 10-29-2004, 05:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR picture

Cisco SG95-16 16-Port Gigabit Switch SG95-16-KR

$47.00



Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24 picture

Cisco SG110 24 Port Gigabit Ethernet Switch w/ 2 x SFP SG110-24

$117.00



Cisco SG110 8 Port Gigabit Ethernet Switch SG110D-08-BR picture

Cisco SG110 8 Port Gigabit Ethernet Switch SG110D-08-BR

$39.00



Cisco MS120-48FP - 52 Ports Fully Managed Ethernet Switch UNCLAIMED picture

Cisco MS120-48FP - 52 Ports Fully Managed Ethernet Switch UNCLAIMED

$449.00



Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch picture

Linksys SE3008 8 Ports Rack Mountable Gigabit Ethernet Switch

$18.99



New Linksys SE3005 5-port Gigabit Ethernet Switch picture

New Linksys SE3005 5-port Gigabit Ethernet Switch

$15.99



NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (GS305) - NEW IN BOX picture

NETGEAR 5-Port Gigabit Ethernet Unmanaged Switch (GS305) - NEW IN BOX

$18.99



*NETGEAR PROSAFE (JGS524V2) 24-Port Gigabit Ethernet Switch *NO AC* picture

*NETGEAR PROSAFE (JGS524V2) 24-Port Gigabit Ethernet Switch *NO AC*

$29.99



YuanLey 10 Port Gigabit PoE Switch With 8 Poe Unmanaged with 2 1000Mbps Uplink picture

YuanLey 10 Port Gigabit PoE Switch With 8 Poe Unmanaged with 2 1000Mbps Uplink

$20.00



Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED picture

Fortinet FortiSwitch FS-124D-POE 24 Port Gigabit Ethernet Switch UNREGISTERED

$89.97