• February 24, 2025, 03:21:08 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Open Port 80 for entire lan?  (Read 14876 times)

crazydrve

  • Level 1 Member
  • *
  • Posts: 4
Open Port 80 for entire lan?
« on: August 16, 2010, 06:39:57 PM »

hey i was wondering if there is a way top open port 80 on entire lan...

i have 4 machines and i want them all to have web servers...

I know i can have one and use vhosting but dont know how to do that and would rather just test with separate machines if possible...

i am sure its possible cuz i doubt companies would only run 1 web server

thanks for any ideas?
crazydrve
Logged

BrownChiLD

  • Guest
Re: Open Port 80 for entire lan?
« Reply #1 on: August 16, 2010, 09:00:59 PM »

hi Crazy drive

You can open port 80 intirely from the router.. passthru kind of thing.. but i dont you can achieve what you want .. coz you have to instruct the router w/c IP address to throw the port 80 traffic to..

think of it this way.. you have 5 webservers in your network all listening on port 80..

say i want to connect to your webserver 1 .. i connect to your ip from the browser:

http://12.122.1122.22:80

So how do you direct my packets to go to your webserver 1? how would your network know i wanted to connect to server 1? and no my request can not go to ALL your servers at once .. that just wont make sense.. w/c HTTP/PHP page will get generated on my browser? hehe


the only way you can achive multple web servers from 1 network/router is to do port forwarding..

say port 80 - 1st webserver
port 81 - 2nd webserver

and so on..

that's how companies do it...  and if you need your webservers to stay on port 80 traffic , then youll need separate routers and Public IPs for each server..

hope this helps
Logged

LookIntoMyEyees

  • Level 5 Member
  • *****
  • Posts: 619
  • Let me lend you a hand & solutions shall follow.
Re: Open Port 80 for entire lan?
« Reply #2 on: August 16, 2010, 09:50:56 PM »

Huh I think it is posible. Ports are just a connection. Lets say he has 2 servers on port 80. I connect to server number 1, My pc would get the servers Ip address. Lets say I connect to server number 2, my pc would connect to server number 2 using its unique ip address. So now he said he has 5 web servers now those 5 have there unique IP address from were people can connect to it. BrownChild you said "So how do you direct my packets to go to your webserver 1? how would your network know i wanted to connect to server 1" All packets must have an address to go to, your isp has an address for you and therefore all his webserver will have there own onces, I suppose even if it is one ip for 5 webserver those 5 webserver will than have there own address separate to the isp address. Pc address, Aka (Also know as) IP address.

The connection is just established through port 80. By default I think all ISP have port 80 opened. but since we are in a router we will have to do it ourself. I may be wrong not all ISP have port 80 opened. Shed some lights here (you know who I mean!) As for to do it I believe I can do it.


KK after you have successfully made it to the login page Navigate to ADVANCED > SPECIAL APPLICATION. Once there I believe you can take it from there. Just put 80 on both Trigger Port and firewall port. Now set TCP to both, for both of Trigger and firewall port.
Here is an image of how I would do it.

Special application is used to open up ports to all devices on the network. Making it unsafe if you open certain ports. "Special Applications rules apply to all computers on your internal network" You may at one point ask yourself what is is Trigger and firewall port? Well trigger is outbound Aka information you will send via w.e port you open. Firewall port is information you will receive via w.e (what ever) port you open up. Good luck bro! let me know how it goes.

   Anyway I believe I have resolved your issues. Thank you for posting on Dgl 4500 It was a pleasure serving you.

--
Chris
« Last Edit: August 17, 2010, 12:33:01 AM by LookIntoMyEyees »
Logged
Did I Help? If So, Say So! ShHHhh!, Just LookIntoMyEyees! No one is perfect, we all make mistakes.

crazydrve

  • Level 1 Member
  • *
  • Posts: 4
Re: Open Port 80 for entire lan?
« Reply #3 on: August 18, 2010, 12:13:41 AM »

Thanks for the help guys but I did open port 80 on special applications but still no go...

the sites work internally. but when I try to access them externally its a no go...

I verified the sites work when i use virtual server setting only

its dont make sense...
Logged

LookIntoMyEyees

  • Level 5 Member
  • *****
  • Posts: 619
  • Let me lend you a hand & solutions shall follow.
Re: Open Port 80 for entire lan?
« Reply #4 on: August 18, 2010, 12:53:01 AM »

No it makes sense, But the the only reason I did not set you up with virtual server settings was because you said you want to test this with separate machines. I assumed you wanted port 80 to be opened to no matter what machine you put on the router. It is weird it did not work for you using  special application. Did you do exactly what I did in the image above? But either way I am glad you got it working. The only problem with virtual sever is that you will have to set it Manually for each machine xD!.

--
Chris
Logged
Did I Help? If So, Say So! ShHHhh!, Just LookIntoMyEyees! No one is perfect, we all make mistakes.

Squirrel2

  • Level 2 Member
  • **
  • Posts: 69
Re: Open Port 80 for entire lan?
« Reply #5 on: August 18, 2010, 07:44:04 PM »

Let me try to understand what you want to do. Read the following and correct me if I am wrong...

You have multiple computers connected to your DGL-4500. They are all running web servers on port 80. You want to be able to access all of these web servers from a computer not connected to the DGL-4500.

If I was correct, then what you want to do is use the Virtual Server function. Here's how to set it up for one of your PCs...

In the DGL-4500's configuration page, go to Advanced and then Virtual Server
Choose Enable
Name: choose HTTP from the popup menu
IP Address: choose the computer you want to setup from the popup menu
Protocol: leave this on TCP
Public Port: pick a port you aren't using
Private Port: leave this on 80
Schedule: leave on Always
Inbound Filter: leave on Allow All
Click the Add button

Now you've setup ONE PC. To access this PC's web server from another computer, you'll need to type in something like the following: http://72.18.0.255:8010

That 8010 at the end would be the Public Port you entered in the configuration of the Virtual Server. If it's working, go ahead and setup more Virtual Servers. Remember to give each web server a different Public Port. And remember to add that Public Port to the end of the URL when you're trying to access the web server.
Logged

LookIntoMyEyees

  • Level 5 Member
  • *****
  • Posts: 619
  • Let me lend you a hand & solutions shall follow.
Re: Open Port 80 for entire lan?
« Reply #6 on: August 18, 2010, 09:31:44 PM »

Let me try to understand what you want to do. Read the following and correct me if I am wrong...

You have multiple computers connected to your DGL-4500. They are all running web servers on port 80. You want to be able to access all of these web servers from a computer not connected to the DGL-4500.

If I was correct, then what you want to do is use the Virtual Server function. Here's how to set it up for one of your PCs...

In the DGL-4500's configuration page, go to Advanced and then Virtual Server
Choose Enable
Name: choose HTTP from the popup menu
IP Address: choose the computer you want to setup from the popup menu
Protocol: leave this on TCP
Public Port: pick a port you aren't using
Private Port: leave this on 80
Schedule: leave on Always
Inbound Filter: leave on Allow All
Click the Add button

Now you've setup ONE PC. To access this PC's web server from another computer, you'll need to type in something like the following: http://72.18.0.255:8010

That 8010 at the end would be the Public Port you entered in the configuration of the Virtual Server. If it's working, go ahead and setup more Virtual Servers. Remember to give each web server a different Public Port. And remember to add that Public Port to the end of the URL when you're trying to access the web server.

 He has managed to do that -_-. What he wanted was to open port 80 for all the servers. He did not want to set it up for each one using virtual server. If you read his first post than you would have realized it when he said "hey i was wondering if there is a way top open port 80 on entire lan" I am just saying.
Logged
Did I Help? If So, Say So! ShHHhh!, Just LookIntoMyEyees! No one is perfect, we all make mistakes.

Trikein

  • Guest
Re: Open Port 80 for entire lan?
« Reply #7 on: August 19, 2010, 08:06:40 PM »

You can try this, but I wouldnt suggest it. Not only does it open port 80 (the most widly used port) for the entire internet onto any PC on your network, but It will pretty much negate any other port forwarding you have enabled on the router. And I don't even know you can do what your looking to do. Multiple servers on the same port on multiple PC? Me thinks your stretching your Residential router and ISP a bit too far.

ADD GAMEFUEL RULE

Enable : Yes
Name : Server (Choose what ever)
Priority : 16 (Usually nothing above 10) (1..255, 255 is the lowest priority)
Protocol : TCP (6) <<   
Local IP Range : 192.168.0.199 to  192.168.0.100
Local Port Range :79 to 81
Remote IP Range : to  255.255.255.0
Remote Port Range : 79 to  81
 
Logged

Squirrel2

  • Level 2 Member
  • **
  • Posts: 69
Re: Open Port 80 for entire lan?
« Reply #8 on: August 19, 2010, 09:57:40 PM »

He has managed to do that -_-. What he wanted was to open port 80 for all the servers. He did not want to set it up for each one using virtual server. If you read his first post than you would have realized it when he said "hey i was wondering if there is a way top open port 80 on entire lan" I am just saying.
It was his second post that made me reply to the thread. He said that the sites "don't work externally". So I went back to the first post, and I can only guess as to what he's trying to do. So, I hope he'll respond and clarify things for us.

And I don't think you can open any ports inside the LAN... communication inside the LAN is unrestricted. At least, I can't find any configuration options regarding LAN to LAN traffic.
Logged

Trikein

  • Guest
Re: Open Port 80 for entire lan?
« Reply #9 on: August 19, 2010, 10:16:00 PM »

LAN to LAN is wide open, since NAT doesn't play a role. Unless there is something blocking it on the PC itself. I think what he meant is he wants the whole LAN open to the whole WAN on port 80. But even thats not going to work. Yea, it will be open. But since your bypassing NAT, the traffic won't know where to go. Can't have it both ways I am afraid. I just don't get why he is trying to do something as complex as configuring multable web servers, but doesn't want to bother setting up forwarding rules? Isn't that like racing the Indy 500 in an automatic?
Logged

crazydrve

  • Level 1 Member
  • *
  • Posts: 4
Re: Open Port 80 for entire lan?
« Reply #10 on: October 11, 2010, 08:03:36 PM »

Ok i am back ... i am still trying to mess with this...

example:
windows server box with web server
linux box with web server
and then a portable web server on the windows server box...

now if i set up forwarding rules if i understand correctly only 1 box can be on port 80?

so the other sites would have to be site1:8090
site2:8099

i have it working internally and externally but would like to make it so u dont have ports at end of it (at least for visitors)

isnt there a way to make it behind the scenes so if i give out the address a person would not have to put in the :####?

how would companies run there web servers? i doubt they have one big web server?

now i guess what am i really needing to do is setup dns names right?

example:
jackass.com
site1.jackass.com
site2.jackass.com

wouldn't i still need the different ports at the end of site#.jackass.com?

thank you for any help... just trying to figure out how to run multiple sites with different boxes.

crazydrve
Logged

Trikein

  • Guest
Re: Open Port 80 for entire lan?
« Reply #11 on: October 11, 2010, 08:14:45 PM »

Honestly, I think your ISP block outgoing port 80. Atleast every known ISP up where I live. And they do it for that very reason, to block people from running web servers from their home. A residental account isn't designed for that type of purpose. You need a web host my friend.
Logged