LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-27-2008, 08:49 AM   #1
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Rep: Reputation: 15
connecting a server to outer world


Hi!

I have setup my computer to be a server: apache + php + mysql.
OS is openSuse 11 Gnome.

I was wondering what do I have to do so my brother from other town can connect to my server and use its php and sql capabilities ?
 
Old 06-27-2008, 09:30 AM   #2
tungvs
Member
 
Registered: May 2008
Distribution: Centos; Ubuntu; Fedora
Posts: 98

Rep: Reputation: 15
All you need is port 4warding and dynamic DNS .
 
Old 06-27-2008, 09:41 AM   #3
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tungvs View Post
All you need is port 4warding and dynamic DNS .
sound simple, but how do I do that ?
I have DSL internet connection, and all the setting are in my router, not the computer...so I can open a port on router and dynamic DNS is already configured in router I guess
 
Old 06-28-2008, 01:56 AM   #4
tungvs
Member
 
Registered: May 2008
Distribution: Centos; Ubuntu; Fedora
Posts: 98

Rep: Reputation: 15
You're right. Most of modern routers (i.e. my modem) support dynamic DNS. It's labeled "DynDNS" in the router's configuration menu. You can browse
Code:
dyndns.org
for more details in using this service. Also, the port forwarding is quite simple. In the router's menu there's a function called "NAT". My modem is Zyxel so I'm using "SUA only" mode. I'm not sure about the differences between "SUA only" and "Full feature" mode. But "SUA only" is OK. Click to the "SUA only" and you'll be brought to the NAT configuration page. You'll find 3 columns: start port, end port and IP. The start port and end port column determines which range of ports you want to forward. Web service usually uses port 80 or 8080. The IP column specifies which computer (IP) the range of ports is forwarded to. In this case, it's your IP. Have fun.
 
Old 06-28-2008, 01:59 AM   #5
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
The OP may have a static IP, so dynamic DNS of course in this case is not necessary.
 
Old 06-28-2008, 03:28 AM   #6
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tungvs View Post
You're right. Most of modern routers (i.e. my modem) support dynamic DNS. It's labeled "DynDNS" in the router's configuration menu. You can browse
Code:
dyndns.org
for more details in using this service. Also, the port forwarding is quite simple. In the router's menu there's a function called "NAT". My modem is Zyxel so I'm using "SUA only" mode. I'm not sure about the differences between "SUA only" and "Full feature" mode. But "SUA only" is OK. Click to the "SUA only" and you'll be brought to the NAT configuration page. You'll find 3 columns: start port, end port and IP. The start port and end port column determines which range of ports you want to forward. Web service usually uses port 80 or 8080. The IP column specifies which computer (IP) the range of ports is forwarded to. In this case, it's your IP. Have fun.
I also have Zyxel, and I have opened ports. And can you please explain ma little more about this DynDNS, do I have to open account there and is it free of charge ? I found some setting in router for DynDNS...

EDIT:
I have created some hosting service, in a way that it redirects me to s specified URL for now, so if I want FTP, I have set FTP server and redirect it to created server instead of URL ?
link: http://webmarecic.homeftp.org/ ... and I'd like to access to my FTP server, not to my testing web page...

Last edited by kaiwan; 06-28-2008 at 03:44 AM.
 
Old 06-28-2008, 03:31 AM   #7
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Mr. C. View Post
The OP may have a static IP, so dynamic DNS of course in this case is not necessary.
no, it is dynamic...
 
Old 06-28-2008, 01:06 PM   #8
tungvs
Member
 
Registered: May 2008
Distribution: Centos; Ubuntu; Fedora
Posts: 98

Rep: Reputation: 15
1. Yes, you must have an account on dyndns website. Then it's not difficult to follow the website's instructions.
2. It's completely free.
3. A little information about dyndns: when you register an account on dyndns website, you'll be given a domain name (i.e. yourname.com ), and the domain name will be associated with your public IP address (it could be your router's IP. That's why we need port forwarding). So when someone types "yourname.com", his computer will make a DNS request, and receive your IP address. It's independent from applications. So FTP server, HTTP server ... or any DNS-dependent applications should work properly. Usually, with routers which don't support dyndns, you have to download a small program (provided by dyndns website) to auto-update your router's or modem's IP to the dyndns server when the IP changes (when you're behind an ISP). But in this case, your modem supports dyndns, everything becomes easier. You simply fill in your registered dyndns account, your password, the domain name associated with the account. And the modem will auto-update to dyndns server when its IP changes, without extra program. For more details, please read dyndns instructions in the website. Good luck .
 
Old 06-28-2008, 01:13 PM   #9
kaiwan
Member
 
Registered: Sep 2006
Posts: 52

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tungvs View Post
1. Yes, you must have an account on dyndns website. Then it's not difficult to follow the website's instructions.
2. It's completely free.
3. A little information about dyndns: when you register an account on dyndns website, you'll be given a domain name (i.e. yourname.com ), and the domain name will be associated with your public IP address (it could be your router's IP. That's why we need port forwarding). So when someone types "yourname.com", his computer will make a DNS request, and receive your IP address. It's independent from applications. So FTP server, HTTP server ... or any DNS-dependent applications should work properly. Usually, with routers which don't support dyndns, you have to download a small program (provided by dyndns website) to auto-update your router's or modem's IP to the dyndns server when the IP changes (when you're behind an ISP). But in this case, your modem supports dyndns, everything becomes easier. You simply fill in your registered dyndns account, your password, the domain name associated with the account. And the modem will auto-update to dyndns server when its IP changes, without extra program. For more details, please read dyndns instructions in the website. Good luck .
thank you very much, will read
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Bush wants outer space now Hitboxx General 9 11-13-2006 04:18 PM
How can I connect to outer sites via proxys to upgrade my debian? LittlesnowLinux Debian 1 11-26-2004 02:09 PM
Connecting to Outside World coolguy_iiit Linux - Networking 5 10-31-2004 12:48 AM
Server loses contact with outer world Statoilroffe Linux - Networking 0 03-29-2004 12:23 PM
can't use protected inner class when inheriting the outer Dominik Programming 6 02-02-2004 02:12 AM


All times are GMT -5. The time now is 07:34 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration