Jump to content
The Uniform Server Community
AoN

Outside Access

Recommended Posts

Ok, which server(s) are you currently in?

Share this post


Link to post
Share on other sites

Get on #uniserver on irc.oftc.net

Edited by MrX

Share this post


Link to post
Share on other sites

(Before you read anything below, please note that all the timestamps are GMT +8, the chat took place immediately after the last post here, lines prefixed with * are actions, if you don't know what they are then you probably don't use IRC)

 

Anyway, for those of you who're wondering how we solved AoN's problem(s), here's the log of our IRC chat for you to add to your collection ;)

 

The uneventful entrance:

(16:09:41) AoN joined #uniserver

(16:09:44) Hi

(16:09:50) Forgive me for taking so long.

(16:10:03) I kinda feel asleep. ^^'

(16:11:06) Now, why come to IRC?

 

The problem solving starts:

(16:11:56) Start by finding every instance of "" and ""

(16:12:03) Remove them and everything in between them

(16:12:11) In rhw config file?

(16:12:14) the*

(16:12:40) Yes

(16:14:09) Including the example one?

(16:14:13) No

(16:14:22) Done.

(16:14:33) If they have "#" in front of them, then you shouldn't have to remove them

(16:14:40) k

(16:14:42) Done.

(16:14:53) Restarted Uni]form Server?

(16:14:56) Uniform*

(16:15:30) Just did. I wasn't sure if you wanted me to modify anything else. ^^'

(16:17:50) Ok, it isn't working, open a Command Prompt and type: netstat -an | find "LISTENING" | find ":81"

(16:18:03) Show me what it returns

(16:18:39) It returns for me perfectly, but I'm inside the network. http://us.defranks.net/

(16:19:01) Btw, why are you using Port 81 and not 80?

(16:19:38) Because Cox blocks port 80 from accessing my PC, so, when it reaches me, I have to convert the port to 81 so the files may be accessed by others.

(16:20:24) Ok, do a forward from Port 81 in your network to Port 81 of us.defranks.net

(16:20:49) huh?

(16:20:59) You lost me. :(

(16:21:31) Instead of forwarding 81 in your network to 80 of your public IP

(16:21:38) Forward 81 in your network to 81 of your public IP

(16:22:19) That is how I originally had it, but that would require a port to be added to the URL, and most people just overlook that, and it would cause errors for them.

(16:22:38) Just do it

(16:22:57) so I can know what's wrong

(16:23:01) As soon as it can run without requiring a port in the URL, I will be transferring all my files to the computer I'm running the server off of.

(16:23:03) k

(16:24:05) Done. I still had it saved in my admin. ^^

(16:24:26) http://us.defranks.net:81/ Would be the URL now.

 

We finally realize that we've been trying for months to solve something so obvious:

(16:24:46) It's working now

(16:24:58) Cox blocks 80 on your public IP not your network one

(16:25:45) I don't see how there is much of a difference. :( I'm a coder, not a server person, that's why I've waited until now to try hosting myself. ^^'

(16:25:53) Therefore, it's not Uniform Server's fault no one can access http://us.defranks.net/

(16:25:56) but your ISP's fault

(16:26:19) Is there any way to get it up for it can be used without the port number?

(16:27:07) only way to get around this would be to use an external server that redirects requests to your server (and #81) well only way I can think of anyway

(16:27:35) That means an A Record, which still couldn't do ports.

 

Now we have a new problem to solve:

(16:28:04) http://www.no-ip.com/support/guides/web_se...ck_port_80.html

(16:28:07) no that means,

(16:28:36) No-IP has a "Port 80 Redirect" DNS feature :D

(16:28:51) o, Framesets, I hate using them for this kind of thing. I tend to run into issues to the PHP scripting.

(16:28:55) Host Type*

(16:28:59) AoN: http://www.no-ip.com/support/guides/web_se...ck_port_80.html

(16:29:09) I read.

(16:29:27) Maybe you could contact your DNS provider and ask them if they provide such a feature, or just use No-IP

(16:29:51) I got that feature with my DNS too but it's actually just a frameset too afaik

(16:29:59) I contacted them about it a few weeks ago, and they said the only option was CNAME or A Record.

(16:30:42) how about header("location") ?

(16:30:57) No, that would error the scripting. :(

(16:31:20) My friend tried it on his server, where port 80 isn't blocked, but with the same scripts I'm using.

(16:31:30) or a Meta Refresh?

(16:31:56) I don't see how a refresh would matter to the port.

(16:32:04) from another server

(16:32:22) or a HTTP 301?

(16:32:24) but you could just append the port number in your local links in a define

(16:32:27) Then again, I've never used them, I only use JavaScript and PHP refreshing.

(16:32:28) easy to change then

(16:34:11) or even, if $_SERVER['hostname'] == "myserver" define("PORT",81) else define("PORT",80);

(16:34:17) prolly how I woul do it

(16:35:01) or in that way anyway

(16:35:16) you get my point?

(16:35:21) Yea.

(16:35:48) cool, I usually have a gift of beein incoherant

(16:35:57) so ppl never get what I say

(16:36:03) *Laughs*

(16:36:32) I'm a web coder, so, I get it, I just don't get the actual server stuff. ^^'

(16:37:10) far

(16:37:13) fair*

(16:38:20) AoN: Running a HTTPd on something other than Port 80 has its benefits

(16:39:03) If someone discoveres a security flaw in a HTTPd, the port they're most likely to scan is Port 80

(16:39:37) If your HTTPd is affected by the flaw and you're running on Port 80, you could be hacked

(16:40:04) Well then, I guess having this error isn't too bad. :P

(16:40:12) Running a HTTPd on another port, decreases your chances, as hackers are unlikely to scan other ports for a HTTPd

(16:40:20) and that's why your ISP blocks it

(16:40:45) Because something like that happened before (the Code Red Virus)

(16:41:54) Remember the G.W.Bush virus?

(16:44:51) yea I heard usa is still infected with him....hahahahaha

(16:45:50) http://zrift.com/

(16:46:10) I used the code you gave me to bring up the site on my server, but it just errors.

(16:48:04) eh I didnt give you any "copy'n paste" code

(16:48:14) I know.

(16:48:24) <?php

(16:48:24) if $_SERVER['zrift.com'] == "70.160.214.143" define("PORT",81)

(16:48:24) else define("PORT",80);

(16:48:24) ?>

(16:48:30) I'm sure I did it wrong.

(16:48:56) you forgot the brackets

(16:48:57) ()

(16:48:58) I've never done a code like this, so, I am not too sure.

(16:49:15) I copied your code and just filled in the blanks...

(16:50:03) and also the $_SERVER needs a valid identifier

(16:52:10) if ($_SERVER['SERVER_ADDR'] == "70.160.214.143") define("PORT",81)

(16:52:15) like that

(16:52:26) Yea.

(16:52:50) I have that.

(16:52:59) <?php

(16:53:00) if ($_SERVER['zrift.com'] == "70.160.214.143") define("PORT",81)

(16:53:00) else define("PORT",80);

(16:53:00) ?>

(16:53:09) zrift.com is the server address.

(16:53:22) no you need to wite SERVER_ADDR

(16:53:57) It'll still error.

(16:54:50) you need a semi kolon after the define sentence

(16:55:05) Oh, oops! ^^'

(16:55:29) Notice: Undefined index: SERVER_ADDR in c:\sites\single14\esbrandt\webroot\default.php on line 2

(16:55:36) Told you it would still error.

(16:55:41) :P

(16:58:02) are you having ' ' around SERVER_ADDR?

(16:58:16) Yea.

(16:58:20) paste code plz

(16:58:28) <?php

(16:58:28) if ($_SERVER['SERVER_ADDR'] == "zrift.com") define("PORT",81);

(16:58:28) else define("PORT",80);

(16:58:29) ?>

(16:59:21) and

(16:59:22) <?php

(16:59:22) if ($_SERVER['SERVER_ADDR'] == "70.160.214.143") define("PORT",81);

(16:59:22) else define("PORT",80);

(16:59:23) ?>

(16:59:46) if you wanna use name it's SERVER_NAME

(16:59:51) won't work either, as the file isn't actually being accessed at 70.160.214.143

(17:00:12) but it looks right, you prolly got register globals off or smth

(17:01:05) http://us3.php.net/manual/en/reserved.variables.php

(17:03:04) register_globals Off Off

(17:03:18) I can't change it either.

(17:03:46) you shouldnt have too afaik, but there other ways to get the ip of the server

(17:04:37) I need to define the server_name to display the data being accessed at the IP:port

(17:05:41) <?php

(17:05:41) if ($_SERVER['SERVER_NAME'] == "zrift.com") define($_SERVER['SERVER_ADDR'] == "70.160.214.143:81");

(17:05:41) else define("PORT",80);

(17:05:41) ?>

(17:05:46) Think that'll work?

(17:06:13) no you cant ser anything in the $_SERVER it's defined from http headers and server configurations

(17:06:27) set*

(17:07:07) and you cant set with ==

(17:07:15) *Laughs*

(17:07:39) I know, I'm not so stupid that I don't know this, it was meant for something for you to laugh about.

(17:10:38) MrX set topic on #uniserver: If you can't solve a problem in the forum, that's because forums lack the IRC factor ;)

(17:10:50) lol?

(17:11:26) *AoN feels insulted now

(17:12:22) I've got to go soon, I have work in 45 minutes.

(17:13:32) I'm no PHP coder, so I'll leave this to you and ungamed :)

(17:13:54) *Laughs*

(17:14:15) I do almost all my coding in HTML, CSS, and basic JavaScript.

 

We sidetracked:

(17:14:40) http://www.zrift.com/Forum Can I get C&C on the logo I made for my new forum?

(17:15:37) C&C?

(17:15:41) Comments and?

(17:15:49) Criticism?

(17:15:49) comments and critizism

(17:15:51) Ok

(17:16:05) I don't know why I spell it with a z...

(17:19:44) No C&C?

(17:20:28) Nope

(17:20:35) Drats.

(17:21:16) I spent so much time on it too! :(

(17:21:29) I never said it wasn't good :/

(17:21:34) *Laughs*

(17:21:51) You never said it was. :P

(17:23:53) Anyway, I'll be afk for a nap now. Cya.

(17:24:07) I need to goto work, so, I'm out.

(17:24:15) Thanks for the help. ^^

(17:24:20) No problem :)

(17:24:50) Is ungamed dead?

(17:25:10) Don't know

(17:25:20) ungamed, Yo mama's so big she uses I-95 for a Slip 'n Slide

(17:25:34) :P

(17:25:41) Nope, no reaction...

(17:25:52) o well

 

... and then AoN disappeared from IRC, never to be seen again, at least until the time of writing:

(17:25:55) AoN quit (Quit: www.tmdmoviez.com TMD Recruit Pack Version 4.10B)

 

To make the long story short, always remember that if you can't solve a problem in the forum, that's because forums lack the IRC factor ;)

 

That's all for now :D

Share this post


Link to post
Share on other sites

That was because you insisted on using only Port 80, right?

Share this post


Link to post
Share on other sites

Olajide, you probably missed the log posted here. In that log, AoN thought that the Port 80 block you told him about applied to his LAN and not his public IP. That was the problem, which I found when I told him to do a port forward on 81 instead of 80 of his public IP.

 

In other words, he thought that 192.168.0.105:80 (his internal IP) was blocked instead of us.defranks.net:80 (his public IP)

 

AoN says that we didn't fix it because he was thinking about using Port 80 as by using Port 81 "that would require a port to be added to the URL, and most people just overlook that, and it would cause errors for them" (in his own words)

 

According to the log, we (ungamed and I) tried various ways to give AoN a URL that uses Port 80 (by using other servers, framesets, bla bla) but he rejected most (if not all) of them because the script he's using on his site wouldn't work properly with them :(

Edited by MrX

Share this post


Link to post
Share on other sites

What are you saying..... *confusing..... You reached the point that his ISP was blocking port 80 right? Just like we did before.... ?

Edited by olajideolaolorun

Share this post


Link to post
Share on other sites

You told him that his ISP was blocking Port 80, but he thought that the Port 80 block you were talking about affected his internal IP (LAN IP) and not his public Internet IP. That's why we couldn't access his server (while using Port 80) and that's also why he's listening on Port 81 of his internal IP, get it?

 

He says that we didn't solve it because we didn't help him get Port 80 to work as he hates Port 81 (for the real reason, you'll have to ask him, all I know is that he wasn't very happy after we told him that he couldn't get Port 80 to work as his ISP was blocking it)

 

AoN: If you want Port 80, without all that fuss of getting a redirect from another server and having problems with your scripts, just change your ISP. If that isn't the problem, please give us more information :D

Edited by MrX

Share this post


Link to post
Share on other sites

MrX, you are putting words in my mouth. I never said I thought I was being blocked on my network. If I recall, I said I needed to set-up the domain so that it would access my network via port 81, while the domain is being accessed via port 80. In English, the user goes to the domain normally, but is accessing the actual web site via port 81.

 

Sorry if I got it all confused. As I've said before, I'm not a server person.

 

As for changing my ISP, I wish I could, but, they are the best I can currently get. AOL is crap here, Netscape refused me already, NetZero has provided me with terrible support in the past, MSN was pushing their prices for the few good services that were of value to me, whereas Cox is only charging me for what I use, and their prices are decent, not to mention the excellent support I get from them whenever I need it.

 

The only problem with Cox, so far, is that in order for me to use port 80 with them, I need a business account, which I can't afford, not to mention it would provide me with services I wouldn't need or use.

 

Next is the scripts stuff, I don't think it is a problem with the scripts, I think it is just a problem with me. I've never had to, nor have I ever attempted to have a user access a domain via port 80 and view a web site via port 81. This is uncharted territory for me, and I can't say that often with what I do. ^^'

 

I am grateful for the support I have recieved so far, and if in the least, the UniServer can be used as a dummy server to test new scripts and web sites. ^^

Share this post


Link to post
Share on other sites

Ok, I'll have to admit, my perception of stuff can be quite weird sometimes. So, I'll just let the log talk for itself, the underlined stuff is the question I asked you and the answer I got, whereas the bold words are where I think the misunderstanding is:

(16:17:50) Ok, it isn't working, open a Command Prompt and type: netstat -an | find "LISTENING" | find ":81"

(16:18:03) Show me what it returns

(16:18:39) It returns for me perfectly, but I'm inside the network. http://us.defranks.net/

(16:19:01) Btw, why are you using Port 81 and not 80?

(16:19:38) Because Cox blocks port 80 from accessing my PC, so, when it reaches me, I have to convert the port to 81 so the files may be accessed by others.

I must add that when I asked you that question, I meant, why are you using Port 81 inside your network as you could just do a forward from your Internet IP to Port 80 on your network IP as Port 80 is only blocked on your Internet IP.

Edited by MrX

Share this post


Link to post
Share on other sites

Sorry, what I meant was that Cox is preventing port 80 from reaching my PC, so when it reaches Cox, it has to be converted to 81.

 

As for ComCast, my apartment complex doesn't do business with them. :D

Share this post


Link to post
Share on other sites

Yea, they said that they would only get ComCast here if more than 25 people wanted to switch to it, but they all get the Cox Bundle thing, so, they don't want to.

 

It is a really big annoyance to this. :D

Share this post


Link to post
Share on other sites

You're just enjoying all these issues I have with running a server on my computer, arn't you?

Edited by AoN

Share this post


Link to post
Share on other sites

Okay, I think we have spammed this thread enough...

 

Now, although I'd love to be able to use Uniform Server as my primary server, until I am able to make the domains work out, I won't be able to. I will however use it as a test server for new sites, or versons of them, before I launch them on my normal servers.

 

As for the solutions provided during the IRC conversation, I have attempted using frames, and it caused my scripts to error with logins. I can't figure out why, but, it errors. I tried iframes, etc., and they all errored with complex scripts like the logins I use, which are tied into many other functions of the scripts, so, I can't exactly change them. :D

 

I am however working on less intertied scripts, so that the various functions do not fully rely on primary functions, such as the logins. I hope that they will permit the frames to work, but, I can't be sure they will.

 

I am grateful for the help I have recieved thus far, and I hope that a solution to this may come up for others to use.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...