LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-23-2017, 12:02 PM   #1
biotech25
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Rep: Reputation: Disabled
I can't access my FTP server through web browser from remote computer


Hi,

I have a linux server computer and made FTP server there. The Linux server uses Red Hat v.7.3 (Mapio).

So, in the linux server computer, I can access my FTP server through web browser. The FTP server address is "ftp://ftp.wang-linux1.com".

However, once I try to access my FTP server through web browser from remote computer, I can't access it and I got this error message.

ftp.wang-linux1.com’s server DNS address could not be found.

How can I set DNS address and access it through web browser from remote computer? What am I missing?


I googled to solve this problem. Someone said that I have configure firewall in the linux server computer, but it doesn't have firewall to configure. In terminal, I typed "system-config-firewall" or tried to find "System → Administration → Firewall" but I can't find anything.

Please advise.
Sanghoon
 
Old 06-23-2017, 12:11 PM   #2
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
Ah, DNS issues. let's get started

First, is this remote computer on the same network or on a different network? (Same network, this will work, different network, we need dynamic DNS or a static publicly routable IP)

If this is the same network.
On the FTP server, find your ip address (ip a)
From the remote computer, ping that IP, and ping ftp.wang-linux1.com

What is likely going to happen here is that the ping to the ip address will work, but the hostname will fail. The remote computer doesn't know what wang-linux1.com is, so it asks your dns server, who also doesn't know what wang-linux1.com is, so it fails. The reason why this works on the local computer is that it knows who wang-linux1.com is, it's itself. (if that's not what happens, let us know)

The "quick and dirty" approach is to add the FTP server as an entry into your /etc/hosts file on the remote computer (if it's linux) or C:\Windows\System32\Drivers\etc\hosts (if the remote computer is windows), then restart the network services on the remote computer
The long term solution is to have a DNS server running and add an entry for the ftp server, which I would defer to a dedicated DNS guide.
 
Old 06-23-2017, 01:19 PM   #3
biotech25
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you for your advice.

The remote computer is windows 10. According to your advice, I edited C:\Windows\System32\Drivers\etc\hosts and added

134.142.322.422 ftp.wang-linux1.com

and reset network. But, it still doesn't work.


The complicate thing is that the linux server computer and the remote windows10 computer are in the same lab, but they are in different network; the linux server is under hospital network, but the windows computer is under university network. I put the linux server computer under S2S VPN, so I can access the linux server from my windows computer through SSH protocol. But it seems like FTP protocol is not open between the two computers. I am going to ask University IT support to open FTP protocol. Then, I will update you.

Thank you,
Sanghoon
 
Old 06-23-2017, 01:28 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by Demosa View Post
The "quick and dirty" approach is to add the FTP server as an entry into your /etc/hosts file on the remote computer (if it's linux) or C:\Windows\System32\Drivers\etc\hosts (if the remote computer is windows), then restart the network services on the remote computer
The long term solution is to have a DNS server running and add an entry for the ftp server, which I would defer to a dedicated DNS guide.
It appears that wang-linux1.com is not a "real" domain name...it is available for registration, and has no DNS entries. It must be the hostname of the "linux server computer" or is defined in /etc/hosts as
Code:
127.0.0.1   wang-linux1.com
As such, it would work on the "linux server computer" but not from elsewhere. To use that "domain" from any "remote" computer, you'll need to add it to the /etc/hosts file on the remote computer:
Code:
<IP of the linux server>  wang-linux1.com
and that remote computer must be on the same network as the server.

This is the only way you can have a reference to a not-real name for a server.
 
Old 06-23-2017, 01:39 PM   #5
biotech25
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you Sean. According your advice,

I added "134.142.322.422 ftp.wang-linux1.com" to etc\hosts file and rebooted the computer. When I typed "ftp://ftp.wang-linux1.com" on the google chrome, I got the same error message.

ftp.wang-linux1.com’s server DNS address could not be found.

I think this is because the linux server and the windows computer are in different network and ftp protocol is not open, even though the two computers are in S2S VPN. I am going to ask university IT support to open ftp protocol between the the computers.

Thank you,
Sanghoon
 
Old 06-23-2017, 05:47 PM   #6
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by biotech25 View Post
Thank you Sean. According your advice,

I added "134.142.322.422 ftp.wang-linux1.com" to etc\hosts file and rebooted the computer. When I typed "ftp://ftp.wang-linux1.com" on the google chrome, I got the same error message.

ftp.wang-linux1.com’s server DNS address could not be found.

I think this is because the linux server and the windows computer are in different network and ftp protocol is not open, even though the two computers are in S2S VPN. I am going to ask university IT support to open ftp protocol between the the computers.

Thank you,
Sanghoon
"DNS addess could not be found." would have nothing to do with the status of ftp on the server or in the VPN. The windows PC can't resolve the "domain name" to the IP address...that's a DNS, or in your case, a hosts file problem.

Where is ftp.wang-linux1.com defined on the server? Something there is pointing that "domain" to 127.0.0.1
Can you ping the server from the windows PC by IP address?
Can you ftp://IP_address from the windows PC?
 
Old 06-26-2017, 10:54 AM   #7
Demosa
Member
 
Registered: Feb 2013
Distribution: Fedora 25, RHEL7, RHCI stack
Posts: 38

Rep: Reputation: Disabled
Quote:
Originally Posted by biotech25 View Post
Thank you for your advice.

The remote computer is windows 10. According to your advice, I edited C:\Windows\System32\Drivers\etc\hosts and added

134.142.322.422 ftp.wang-linux1.com

and reset network. But, it still doesn't work.


The complicate thing is that the linux server computer and the remote windows10 computer are in the same lab, but they are in different network; the linux server is under hospital network, but the windows computer is under university network. I put the linux server computer under S2S VPN, so I can access the linux server from my windows computer through SSH protocol. But it seems like FTP protocol is not open between the two computers. I am going to ask University IT support to open FTP protocol. Then, I will update you.

Thank you,
Sanghoon
I'm hoping that's not the actual entry you put in the /etc/hosts file (that's an invalid IP address)

If you can telnet from the windows server to the linux server using the IP address on port 21 (Using PuTTY or similar), then you should be fine to go by IP address. Otherwise, you need to open the port.
 
  


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
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
LXer: How to access VNC remote desktop in web browser LXer Syndicated Linux News 0 09-24-2013 07:00 PM
Browser-based X Server for Remote Access Garibaldi3489 Linux - Software 3 10-29-2007 02:40 PM
Can't access files on remote server thru browser kornerr Linux - General 3 01-29-2006 12:29 PM
can you access ssl + ftp via web browser paul_mat Linux - Networking 1 12-20-2005 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:44 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
Open Source Consulting | Domain Registration