Need help with web server/linksys router!

btsdev

Member
Oct 6, 2001
186
0
0
Ok i made a small webserver in visual basic that listens on port 80, deals with queries and spits pages back out.
When i do http://localhost it works.

I am behind a linksys router (yes i know, soon to hit the trashcan.)

Now. Under the advanced>forwarding>UPnP-forwarding section i have port 80 pointing to my PC behind the router, .100

On regular forwarding i don't have range 80-80 on TCP pointing to my PC because i figured doing it in the UPnP Forwarding section was more appropriate. And when i had done this anyway, it didn't work.

Now for the scenario. When i try to access http://localhost on another PC behind the router, it does Not work. But when i do Http://My.External.Ip.Add from that pc it DOES work. Also. i have a friend from outside the router from another house try to get the page up from Http://My.External.Ip.Add but it does NOT work.

I appreciate any help you can offer in advance.
 

GigaCluster

Golden Member
Aug 12, 2001
1,762
0
0
UPnP is not the same as TCP. You need to clear out whatever UPnP you specified and instead enable TCP port forwarding.
 

btsdev

Member
Oct 6, 2001
186
0
0
There are two separate pages. Forwarding and UPnP Forwarding.

Under forwarding it asks for a port range, protocol, and computer to forward to.
Under UPnP forwarding it asks for a port, protocol, and a computer to foward to. This has description, "for sharing resources."

They both ask for a protocol, and I specified TCP for both. Now i am using UPnP in hopes that it will work; and regular forwarding already didn't work for me.

Sorry I didn't clarify this good enough before.
 

oog

Golden Member
Feb 14, 2002
1,721
0
0
When i try to access http://localhost on another PC behind the router, it does Not work.

"localhost" refers to the local machines. When you tried this from another PC, it was accessing itself, not your computer.

I know this doesn't help you figure out why you can't access the site from outside your router with the external address. It would help to know what problems the external person had. If they run tracert, do they at least get to your external IP address?
 

btsdev

Member
Oct 6, 2001
186
0
0
"tracing route
max 30 hops
request timed out"

That's what he got when he did tracert to my IP.

When he tries to access a page from my webserver, it says 'Cannot display.'


---------
EDIT: just remembered this friend also has a Linksys, and for this sole reason he can not usually join any games or thing that i host

just got another friend to do tracert and he said that some of the traces timed out, some didn't.
 

btsdev

Member
Oct 6, 2001
186
0
0
If i can get this working for tomorrow it would really help, as I have a demonstration to do. Any help at all is appreciated. Thanks
 

TheVrolok

Lifer
Dec 11, 2000
24,254
4,092
136
As long as the router is set to forward tcp 80 to your machine with the webserver it should work. It's very simple. That's how mine works, I just set my router to forward 80 to my linux box that runs my webserver and bam, that's it.. if there's something else wrong maybe it's the program..
 

btsdev

Member
Oct 6, 2001
186
0
0
I just tried another webserver. One that's worked on other peoples' PCs in the past. Nothing :|. It's gotta be the network configuration.
 

Yomicron

Golden Member
Mar 5, 2002
1,735
1
81
Many ISPs block port 80, so try using some other port like 8000. Have your router forward external port 8000 to port 80 of the server.

If someone wants to access your server from outside your network they'll have to go to http://your.modem's.ip:8000. To access it from inside of the network, they'll have to go to http://your.server's.internal.ip:8000 (probably 192.168.254.xxx or 10.0.0.xxx).