|
|
| Line 4: |
Line 4: |
|
| |
|
| == Connection test == | | == Connection test == |
| === Case 1: Access the server from outside network ex: WAN ===
| |
| Where are you? Access the server from outside network ex: Wide Area Network (WAN) or Local Area Network (LAN)
| |
|
| |
| Open the browser from outside network ex: Wide Area Network (WAN) or Local Area Network (LAN)
| |
| * and type the address: {{kbd | key =<nowiki>http://the.domain</nowiki>}} {{exclaim}} Note: Not [https://en.wikipedia.org/wiki/Private_network Private network] / Private IP address
| |
| * or use the remote website monitoring services: [[Web Ping]]
| |
|
| |
| Using alternative web services if the Python was installed
| |
| * (for python 2.x) {{kbd | key=<nowiki>python -m SimpleHTTPServer <port></nowiki>}}<ref>[https://docs.python.org/2/library/simplehttpserver.html 20.19. SimpleHTTPServer — Simple HTTP request handler — Python 2.7.17 documentation]</ref>
| |
| * (for python 3.x) {{kbd | key=<nowiki>python -m http.server <port></nowiki>}}<ref>[https://docs.python.org/3.8/library/http.server.html?highlight=http%20server#module-http.server http.server — HTTP servers — Python 3.8.1 documentation]</ref>
| |
|
| |
| Using telnet client
| |
| * (optional) [https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc771275(v=ws.10) Install Telnet Client | Microsoft Docs] on {{Win}}. [https://medium.com/@blackSource/bring-telnet-back-on-macos-high-sierra-11de98de1544 Bring telnet back on macOS high Sierra – Ayuth Mangmesap (blackSource) – Medium] on {{Mac}}
| |
| * telnet ''DOMAIN_or_IP'' ''PORT'' ex: {{kbd | key = telnet the.domain 80}}
| |
| ** If connected. The console windows will show the message "Escape character is '^]'. " for {{Linux}}. Or show a blank window for {{Win}} If you want to end the telnet command. You can (1) press {{Kbd plus | key1 = Ctrl | key2 = ]}} and (2) keyin {{Kbd | key = quit}} to end the telnet.
| |
| ** If failed. It will show the message: "telnet: Unable to connect to remote host: Connection refused"
| |
|
| |
| curl
| |
| * {{kbd | key = curl -v -o /dev/null http://IP:Port}} If failed. It will show the message: "failed: Connection refused"
| |
|
| |
| tools
| |
| # [http://check-host.net/ Check server: Check host - online website monitoring, Check IP] "checks the possibility of a TCP connection to host's specified port from different locations around the world." quoted from website. {{access | date=2015-08-02}}
| |
|
| |
| == user client node == | | == user client node == |
|
| |
|