apache - Accessing WAMP Server From External IP Address -


i'm experimenting setting site on wamp server hold personal information. because isp blocks port 80, i've had change apache's default port 80 25565 (i believe i've left port 80 operable in case, though). of has gone well, able access server typing in "localhost" or "localhost:25565" google chrome.

however, when using external ip address, variety of errors, namely "connection timed out". in general queries made in format "xxx.xx.xx.x:25565" or "xxx.xx.xx.x", substituting own external ip. port forwarded (i've checked http://canyouseeme.org several times) , mentioned, site working correctly localhost.

i running latest version of wordpress on site , using wordpress homepage index.php (replacing wamp default). attaching segments of httpd-vhosts.conf , httpd.conf modified wamp defaults in case part of issue. in advance.

update: able discover still problem port 80. apparently server still trying send final data on port 80 though responding initial request on port 25565. if knows workaround this, please let me know.

httpd-vhosts.conf:

<virtualhost *:25565>     serveradmin webmaster@dummy-host.example.com     documentroot "c:/apache24/docs/dummy-host.example.com"     servername dummy-host.example.com     serveralias www.dummy-host.example.com     errorlog "logs/dummy-host.example.com-error.log"     customlog "logs/dummy-host.example.com-access.log" common </virtualhost>  <virtualhost *:80>     serveradmin webmaster@dummy-host2.example.com     documentroot "c:/apache24/docs/dummy-host2.example.com"     servername dummy-host2.example.com     errorlog "logs/dummy-host2.example.com-error.log"     customlog "logs/dummy-host2.example.com-access.log" common </virtualhost> 

httpd.conf

listen 0.0.0.0:80 listen [::0]:80 listen 0.0.0.0:25565 listen [::0]:25565 

ok, first not have change apache's port default port 80. should change routers port forwarding configuration external access router port 25565 forwards ip address of pc running wampserver example 192.168.1.10 , port 80.

so makes incoming connects on routers port 25565 forward connection 192.168.1.10:80. gets round isp blocking port 80 , internal use keeps things using default port 80.

secondly default httpd-vhost.conf file apache release , not tailored wampserver use. useless points documentroot somewhere not exist on wapserver installation i.e. documentroot "c:/apache24/docs/dummy-host.example.com"

so going have delete example code , rewrite wampserver installation.

thirdly, using wordpress complicates things little because of way wordpress stores url used when install ( used localhost) database , uses when building urls internally. building of internal urls causes problems may reach site homepage when click internal link or menu item generate url localhost/next-page , of course if browser see's localhost going on clients pc apache web server server page, , wont there.

so first suggest read post project links not work on wamp server explains why virtual hosts idea , how create them in wampserver.

then need register , dynamic dns domain name somewhere no-ip.com, let have 1 free.

then need follow these instructions change sites url make sites url match dynamic dns url have got no-ip.com.

then remote user able use dynamic dns url , port number access server eg mysite.no-ip.net:25565


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -