Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote access to Apache Server

I have a LAMP server used to remotely access a MySQL database (through a dynamic DNS service). Until yesterday, everything was working fine. Here is what I checked so far, without any success (I keep receiving a timeout error when trying to access remotely the server):

  • Dynamic DNS service is ON on my router, updated for the correct external-IP address (using NoIP ddns.net).
  • The server is working just fine locally on 192.168.0.24 and I can access the MySQL database from it.
  • Ports forwarding is set correctly
  • Firewall at the router level has been temporarily disabled

Here's my Apache ports.conf file:

    Listen 80
<VirtualHost *:80>
    DocumentRoot "/www/example1"
    ServerName www.example.com

    # Other directives here
</VirtualHost>

SharkWire gives me this output on the failed request :

533 15.633088 192.168.0.14 79...*** TCP 66 [TCP Retransmission] 27536 → 80 [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=4 SACK_PERM=1 –

** Details of the SharkWire failed Request here: http://imgur.com/a/KtGuY **

Edit: I am not able to connect using the external IP (instead of the DynDNS address) either, so the problem seems to be on the server side more than on the IP resolution side.

I have no idea what to check anymore and would welcome any advice/idea.

like image 617
ylnor Avatar asked Jan 31 '17 09:01

ylnor


People also ask

How can I access my Apache server from outside the LAN?

Assuming your router has a valid IP itself (say x.x.x.x) you can access your Apache server on: http://x.x.x.x/. You can use any other port instead of 80 and access your Apache through http://x.x.x.x:PORT/ of course.

How do I access my webserver remotely?

To log on to Remote Web Access from a remote computerOpen a Web browser, type https://<YourDomainName>/remote in the address bar, and then press Enter. You can get your domain name information from your network administrator. Make sure that you include the s in https.


1 Answers

When you are trying to connect to your Apache server, are you connected on the same router ? I had a similar problem. And the problem was that the adress could only be access from another router (which seems logical).

like image 178
0pendev Avatar answered Oct 19 '22 08:10

0pendev