LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2003, 08:44 AM   #1
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Rep: Reputation: 30
Unhappy How to connect to a server with a subnet address?


What I'm trying to do is connect to a server which is on the router.

I have set up an account at http://www.noip.com and the way that we connect to the router is with this address :

http://halcp.no-ip.org

I know that it's working because we can connect to the router's admin like this :

http://halcp.no-ip.org:8080

It prompts us for our password and we can get in from remote locations.

Now, our server's subnet address is 192.168.0.108 .

It will be the web server (running apache) and the ftp server (running pure-ftp).

Everything is running smoothly. When we enter http://192.168.0.108 in a browser on our LAN we get the Apache congrat's page.

The ftp daemon is working as well. While in the LAN, we can ftp to 192.168.0.108 on port 31. All is well.

What we wish to do is (obviously) connect to the server (http and ftp) from remote locations.

My question is - how do I accomplish this ?

If I were using a web browser, how would I phrase this in the url box ?

If I were using my ftp client, what address would I type in to get to this subnet server ?


JC
 
Old 07-05-2003, 08:55 AM   #2
ikw38
Member
 
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270

Rep: Reputation: 30
First of all addresses like 192.168.0.108 are called IP adresses- the Subnets are generally in 4 classes.
A= 255.0.0.0
B= 255.255.0.0
C=255.255.255.0
D=255.255.255.255

As for being able to remote in- now in Windows it is done generally with a 3rd party application such PC ANywhere or Watchgaurd has there own custom software- and there are other that are stickly web based and usually have a fee attached to them.

Now you might be able to Telnet to your boxes and I am unsure as to how to help you here.
I am having a bad time getting W2K box to authinicate with a Linux Server- Oh they see one another fine but as Windows to join a Linux Domain I am g begging to believe it is down right impossible...
You might serch the web for more information on 3rd party apps that allow you remote in behind a router/firewall I am they are avaliable.

Good Luck,
ikw38
 
Old 07-05-2003, 09:09 AM   #3
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Quote:

First of all addresses like 192.168.0.108 are called IP adresses- the Subnets are generally in 4 classes.
A= 255.0.0.0
B= 255.255.0.0
C=255.255.255.0
D=255.255.255.255
I may not have phrased everything 100% correctly, but hopefully I got my point accross, and my question is understood. The relevant ifo here is the IP address :

http://halcp.no-ip.org
(the dynamic IP address at the moment = 24.73.135.25)

The gateway is :

24.73.135.1

The subnet mask :

255.255.255.128

And the LAN address :

192.168.0.108

Hope that clears it up.

JC
 
Old 07-05-2003, 11:19 AM   #4
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
btw : i have set the router to redirect to the lan address (halcp.no-ip.org ------>192.168.0.108) .

Maybe I'm failing because I'm inside the lan. I'm trying to test it. I guess I'll have to wait until I go home to try it.

Does anyone know how to test it like this from inside the LAN ?

In other words, I'm trying to go outside the lan with http://halcp.no-ip.org then come back inside the lan and open the apache test page.

As i stated earlier, apache works fine. If I'm inside the lan I can type :

http://192.168.0.108

or

http://hal.home.org

and get the apache test page.

JC
 
Old 07-05-2003, 11:41 AM   #5
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
you have to forward requests for port 80 to the LAN machine. If the router is
a store bought DSL router there should be section in the config to FORWARD
ports to certain IP addresses on the LAN side. you dont have to buy any
3rd party software like ikw said to accomplish this.

for example:


http://www.gigahurts.net that is my domain name, my server, down the
hall from me right now, but its acutal IP address is 192.168.1.201 and not
the one you get form doing an ns lookup on the name.


it's called Destination Nating or Port Forwarding... you need to port forward.
 
Old 07-05-2003, 12:38 PM   #6
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thanks Robert0380, I follow ya.

But I think that I've already set things up that way.
I've got the D-Link DI-604, and they call it "Virtual Server".
Here's my config :

FTP Server 192.168.0.108 TCP 31/31 always
HTTP Server 192.168.0.108 TCP 80/80 always
SSH Server 192.168.0.108 TCP 22/22 always

As you can see, the http server is set for port 80.
The odd thing is that I can SSH into the box just fine from a remote location. But when I try http, I don't get the apache test page. I can only get the test page when I'm inside the LAN.
FTP works as well.

Do me a favor if you would. Type this into your browser and see if you get the apache test page :

http://halcp.no-ip.org:80

if that doesn't work, try this :

24.73.135.25:80

It should either show you the page, or prompt for a password.

Thanks

JC
 
Old 07-05-2003, 12:51 PM   #7
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
no it didnt work, check with you ISP and make sure they dont block port 80.
That seems to be a common issue.
 
Old 07-05-2003, 12:53 PM   #8
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
ssh did work. i was able to get a login prompt when i tried to ssh in
(i'm not trying to hack your box by the way, just seeing if ssh worked).

so yea, it seems like something strange with port 80. time to call you ISP.
 
Old 07-05-2003, 12:58 PM   #9
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Thanks man. Yeah, they probably do block port 80. That's the only thing that makes any sense because ssh and ftp work.
Maybe I can just use a different port.

I appreciate it.

JC
 
Old 07-05-2003, 01:32 PM   #10
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
I changed to port 90, but that didn't make any difference.

JC
 
Old 07-05-2003, 03:29 PM   #11
lostboy
Member
 
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268

Original Poster
Rep: Reputation: 30
Actually it did work. My partner hit this link and it shows the apache test page :

http://halcp.no-ip.org:90

So it appears that my IP is indeed blocking port 80.

Thanks for the help Robert0380.

JC
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
major subnet IP address problem. bruse Linux - Networking 1 10-21-2005 07:04 AM
setting IP address and subnet and ...? nothing_but_fatality Linux - Networking 2 10-20-2005 06:52 PM
How to connect to a gateway on a different subnet? anGeR Linux - Networking 1 04-09-2004 08:50 AM
Can't connect to Samba share outside of subnet digitalghost Linux - Software 0 04-01-2004 11:52 AM
Setting IP Address and Subnet Mask and whatnot... Sloanr333 Linux - Networking 6 11-06-2003 11:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration