Before tweaking firewall setup / quick way:
Warning: do not make this permanent if not willing to check your router and os security as this could open services (web server and others too) to public.
Insecure but quick way to test it (may or may not work): 1. Disable your firewall. 2. Connect to your computer's IP with phone. 3. Pray for a moment.
For longer explanation and checklist enable your firewall and continue reading.
Setup up your server software (computer)
See this to find configuration files apache-virtual-hosts-xp.html, under heading "Understanding the Apache server folder structure".
Your server software (apache) should listen (Apache 2.0 / Binding) on net adapter that connects to router.
It is likely that apache already listens on all adapters found and there is no need for config, in that case configuration file contains following (
Listen 0.0.0.0:80 also counts here):
If it contains this:
Change this line to first one or add
Listen 192.168.0.100:80 where
192.168.0.100 is your computer's IP address.
After that restart apache to reload new settings and test if you can connect to your computer's IP address (local IP) with your phone.
If connection fails, continue to routing setup:
There is possibility that you need to configure your router to allow access + configure your computer's firewall to allow incoming connections.
You should go checking your router setup, some wireless routers require that you do configuration through wire. Check your router's manual for that (or just try connecting to your router's IP).
IP address setup (router):
[Required] Make sure that your router serves IP addresses to clients (see DHCP setup from router manual) and that IP adresses used is within private address range (IPv4).
[Optional] Make your computer's (server) IP address static by assigning it to your computer network adapter MAC address. This way it is guaranteed that IP address you choose is available and assigned for your computer.
[Alternate] IP addresses can also be static but if you use static addresses you should make sure that you can set your phone's IP address by hand.
Firewall setup (router)
[Required] First, look for firewall setup and from there allow incoming (port 80) connections to your computer's ip address. Another way is to put your computers ip address to DMZ (Demilitarized Zone) which means that all filters and firewalls disabled for all ports and protocols.
[Alternate] There might also be more secure way to allow only your phone's MAC addressbetter and/or IP addressworser to connect to your computer, all of this depends on your router mfg/model.
Firewall setup (computer)
[Required] Setup your computer's firewall to allow incoming connections either to your http server software or globally to port 80. Depending on OS and firewall software there is again different ways to sort things.
Some stuff that might help:
If your D-Link router servers IP addresses DHCP it might be that http://192.168.0.1 opens up configuration utility for you. If not, but your computer still gets IP from router, then check from your computers's network configuration (IP address configuration) for gateway, this is propably your routers IP address if it is within private range ? .