Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




497 posts

Ultimate Geek
+1 received by user: 3


Topic # 67888 10-Sep-2010 08:35
Send private message

I've got Windowsa 7 Ultimate and I've downloaded WampServer and have everything working via http://localhost

I want have put a .htaccess file in the www folder to block access but I want to point my IP to this address so I can view it at a firend places etc as this is our test website.

I've got a NetComm NB6Plus4Wn and have done some port fowarding but I can not get my site up. I've done this before in XP and had no problem with it.

I guess it's some type of Win 7 firewall but I've turned that off and still nothing, there is something about stealth mode but i can't disable that.

What is wrong please!!!!!!

View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
8027 posts

Uber Geek
+1 received by user: 387

Trusted
Subscriber

  Reply # 378507 10-Sep-2010 10:30
Send private message

Can you post a screenshot of the port forwarding rule you setup in the router?

Also can check you get to the website on PC1 from another computer eg PC2 on your network at home via the lan ip address?



497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378509 10-Sep-2010 10:34
Send private message



 
 
 
 




497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378510 10-Sep-2010 10:37
Send private message

And no I can't not dial the IP of my machine inside my LAN from another PC. I also can't call localhost from another machine that is connect to the same router.

8027 posts

Uber Geek
+1 received by user: 387

Trusted
Subscriber

  Reply # 378531 10-Sep-2010 11:53
Send private message

In that screenshot you have the external port as for the rule as 8064

Just to check...

To access the website from your friends place you need to use the external ip address assigned to your router via your isp + the port number

eg:
http://external-ip-address-goes-here:8064/

* You can find out the external address from the router admin ui for wan ip address or from http://www.whatsmyip.org/

To access the webserver from another PC at your place on you local network you need to use

http://192.168.1.2/

Is that what you've been trying?



497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378547 10-Sep-2010 12:26
Send private message

yes and my mates place i'm trying to external IP - i should be able to access this from home as well though right?

And yes from my other lap top in the lounge i'm trying 192.168.1.2 and i've checked my local ip is .2


1475 posts

Uber Geek
+1 received by user: 147

Subscriber

  Reply # 378578 10-Sep-2010 14:34
Send private message

I think you should attack this as two problems:

1) Getting access to the machine from inside you LAN on port 8064 / 80 / etc
2) Getting external access to your LAN / PC

You say you cannot access the machine in question from another on your network, have you tried to PING it?

PING 192.268.1.2

If this works, then try to TELNET to the HTTP port on the target machine

TELENET 192.168.1.2 80

This will either sit there an do nothing, which means it doesn work, or change immediatley to a blank screen, which means it works (close the window to get out).

Can you post the results please?


(EDIT: fixed port number to 80 in TELNET)



497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378586 10-Sep-2010 14:55
Send private message

Ping 192.168.1.2 results from my second PC

_____________
C:\Users\john>ping 192.168.1.2

Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time=6ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128
Reply from 192.168.1.2: bytes=32 time=1ms TTL=128

Ping statistics for 192.168.1.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 6ms, Average = 2ms

---------------------

Do i do telenet in cmd as well? i've never used that before?

C:\Users\john>telenet 192.168.1.2 80
'telenet' is not recognized as an internal or external command,
operable program or batch file.

1475 posts

Uber Geek
+1 received by user: 147

Subscriber

  Reply # 378587 10-Sep-2010 14:58
Send private message

Yes, TELNET from cmd as well, however don't type what I typed, since its wrong!

I meant TELNET, not TELENET (no E in the middle) sorry!




497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378588 10-Sep-2010 15:03
Send private message

Neither my XP machine of Win 7 machine allows telnet 192.168.1.2 it says

'TELNET' is not recognized as an
operable program or batch file.

Do I enter it as

C:\Users\Grant>TELNET 192.168.1.1 80



497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378589 10-Sep-2010 15:03
Send private message

Hold I did Pint telnet and got this

C:\Users\Grant>ping telnet 192.168.1.2 80
Ping request could not find host telnet. Please check the name and try again.

919 posts

Ultimate Geek
+1 received by user: 224

Subscriber

  Reply # 378591 10-Sep-2010 15:07
Send private message

Two things to try:
1) Make sure Apache (the webserver) is listening on all addresses by trying to load http://192.168.1.2 on your development machine (instead of using localhost). If it's not working you'll need to edit your Apache config (there should be a link in the start menu), do a search for "Listen" and make sure it's set to "Listen 80" (without the quotes). After you make this change restart the Apache service

2) Turn off your firewall on your workstation to make sure that's not blocking it, "Control Panel" -> "System and Security" -> "Turn Windows Firewall on or off". Once it's turned off try accessing it within your network by using the 192.168.1.2 address

1475 posts

Uber Geek
+1 received by user: 147

Subscriber

  Reply # 378592 10-Sep-2010 15:08
Send private message

Strange, TELNET should work from almost any Windows PC.

Your PING command was right the first time, (PING 192.168.1.2).

But that's OK, we can still move on.

Since you can ping the machine we know the connection between them works, we just need to sort out the web part.  When you try in IE (or Firefox etc, doesn't matter) to go to:

HTTP://192.168.1.2

What do you get?

If you use the other machine (the one which has the IP address 192.168.1.2) can you open a web browser and go to:

HTTP://localhost

If this doesn't work then I would guess IIS is not installed.

919 posts

Ultimate Geek
+1 received by user: 224

Subscriber

  Reply # 378594 10-Sep-2010 15:15
Send private message

timbosan:
If this doesn't work then I would guess IIS is not installed.


Wampserver installs the Windows version of Apache. If he can access the site using "localhost" then it's definitely sitting there listening.

1475 posts

Uber Geek
+1 received by user: 147

Subscriber

  Reply # 378596 10-Sep-2010 15:19
Send private message

meesham:
timbosan:
If this doesn't work then I would guess IIS is not installed.


Wampserver installs the Windows version of Apache. If he can access the site using "localhost" then it's definitely sitting there listening.


Thanks for that 'meesham', I didn't know about Apache - do you know if it changes the default port of IIS if that's already installed?  Or sets a different default port than 80 for itself?



497 posts

Ultimate Geek
+1 received by user: 3


  Reply # 378597 10-Sep-2010 15:22
Send private message

Okay thanks for helping. I just did a few things

Apache Config is listening to Port 80, I just checked that and didn't need to change anything as port 80 is the default.

I turned off the firewall (quickly) and went to John's computer. localhost didn't work but 192.1681.2 allowed me to access the www folder within wamp server (the correct place).

So where to from here?

 1 | 2
View this topic in a long page with up to 500 replies per page Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.


Geekzone Live »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.