Home Backend Development PHP Tutorial 怎么访问局域网内的网站?需要如何配置

怎么访问局域网内的网站?需要如何配置

Jun 13, 2016 pm 01:33 PM
hosts localhost

如何访问局域网内的网站?需要怎么配置?
比如我在我本机上建了一个网站。

想通过其他局域网内的机子能访问我的网站。



要怎么设置?需要WAMPSERVER吗?

------解决方案--------------------
你配置好后,其他机子修改hosts就ok了,当然不修改hosts也可以直接输入ip访问也行
------解决方案--------------------
你自己能否访问自己的网站 

你自己的内网ip是多少

你怎样访问自己的网站就让别人怎样访问你的网站

如果你的网站包含 localhost这个单词 那么 把这个单词 改成你的内网ip

此方法只能在内网进行访问

------解决方案--------------------
按lz的意思是想了解怎么搭建服务器吧,你可以baidu一下,http、ftp服务器都有很多教程
------解决方案--------------------
给每个机子分个局域网IP就好了,通过IP来访问你机子上的网站。。
如:
192.168.0.123

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Why can't mysql connect to localhost? Why can't mysql connect to localhost? Aug 10, 2023 pm 02:55 PM

The reasons why mysql cannot connect to localhost are that the mysql service is not started, the mysql port is occupied, and there is a problem with the MySQL configuration file. Detailed introduction: 1. In Windows systems, you can open the service manager by entering "services.msc" at the command prompt, then find the mysql service and ensure that its status is "Running". In Linux systems, you can use the "services.msc" command to check and control the service status; 2. You can use the open command and so on.

What should I do if localhost cannot be opened? What should I do if localhost cannot be opened? Nov 07, 2023 pm 02:47 PM

Solution: 1. Check the running status of the server and make sure it is listening on the correct port; 2. Try to temporarily disable the firewall or security software, and then try to access localhost again; 3. Check the hosts file of the operating system to ensure that localhost is resolved correctly ; 4. Try to restart the network adapter or reconfigure the network connection; 5. Try to change the port used by the local server, or close other programs that occupy the same port; 6. Try to manually add the corresponding IP address and domain name in the hosts file, etc.

What to do if changing hosts in Linux does not take effect What to do if changing hosts in Linux does not take effect Mar 27, 2023 am 10:08 AM

Solution to changing hosts in Linux does not take effect: 1. Find and open the "/etc/sysconfig/network" file; 2. Modify HOSTNAME to the corresponding alias, such as "NETWORKING=yes HOSTNAME=host1"; 3. Through "service network restart" command to restart the network service.

What does linux localhost mean? What does linux localhost mean? Mar 14, 2023 am 09:53 AM

linux localhost means "computer host name". The host name is used to identify an independent computer on the network; the root in "root@localhost" represents the currently logged-in user. In Linux, the administrator account is root, and the user is root. Log in to the Linux machine as a user.

How to solve the problem that the hosts file is missing in Win10 system How to solve the problem that the hosts file is missing in Win10 system Jun 29, 2023 pm 08:33 PM

How to solve the problem that the hosts file in Win10 system is missing? The hosts file is a very important file in a Win10 computer. Recently, some friends found that their hosts file was missing when they wanted to modify the hosts file. So what should they do if they encounter this situation? Let’s take a look at how to recover the missing hosts file in Win10 system with the editor. How to recover the missing hosts file in Win10 system 1. Open C:WindowsSystem32driversetc; 2. Open the view option; 3. Remove the check mark in front of Hide protected operating system files and confirm; 4. Refresh and you will see the Hosts file.

How to solve the problem of being unable to modify the hosts file of Win10 Home Edition How to solve the problem of being unable to modify the hosts file of Win10 Home Edition Jan 14, 2024 pm 06:30 PM

As a user of Windows 10, have you encountered the dilemma of being unable to save changes when trying to modify the hosts file? This file can be regarded as a "database" that closely links the URL domain name and its corresponding IP address. So how to cleverly How to deal with this situation? What should I do if the hosts of Win10 Home Edition cannot be modified? 1. Press the Ctrl+C shortcut key to copy the following path: C:\Windows\System32\drivers\etc. 2. Paste this path into the address bar in the file manager and right-click the upper right corner of the folder where the hosts file is located. 3. Select the "File" menu, select the WindowsPowerShell option, and then a dialog box will pop up. 4

What are the consequences of deleting the hosts file? What are the consequences of deleting the hosts file? Mar 09, 2023 pm 02:42 PM

Deleting the hosts file has no effect; hosts is a system file without an extension, which can be opened with tools such as Notepad. Its function is to establish an associated "database" between some commonly used website domain names and their corresponding IP addresses; when the user is in When you enter a URL that requires login into the browser, the system will first automatically search for the corresponding IP address in the Hosts file. Once found, the system will immediately open the corresponding web page. If not found, the system will submit the URL to the DNS domain name resolution server. Perform IP address resolution.

The latest version of PowerToys 0.64.0 has been released, which includes a file locking tool, Hosts file editor and settings backup. The latest version of PowerToys 0.64.0 has been released, which includes a file locking tool, Hosts file editor and settings backup. May 08, 2023 pm 10:22 PM

Microsoft has released a new feature update for PowerToys. Version 0.64.0 is available for download now and includes two brand new utilities, settings backup and an extensive list of fixes. PowerToys 0.64.0 introduces a new FileLocksmith utility (shown below). It allows you to see which process or processes use selected files or folders, thereby preventing them from being deleted or modified. The second new tool provides a simple and convenient UI for editing Hosts files—no more digging into your system drive and opening Hosts in Notepad. You can view detailed information about processes and even end them if necessary. 0.64.0

See all articles