HelpWeb Server and Private Server on Same IP/Port?

Posts 1–13 of 13 · Page 1 of 1
Web Server and Private Server on Same IP/Port?
I have an interesting question that I hope someone can help me out with.

I'm going to use c453's website and private server as an example.

c453 website accessible at port 80 and 8080
c453 private server accessible at port 80 and 8080

Both have the same IP's as well.

So, how exactly is this set up? Are they hosting their website and private server on the same exact IP and ports? How is that even possible? As far as I know accessing say, "crossdomain.xml" or "chars/list" would be routed through the server since they're not actual files or directories but accessing the domain is routed to the actual web server (apache or what not).

The problem is, if you point a production client to a private server IP then it will read the RequestHandlers like "/crossdomain.xml" but it will not find the website specific files like sfx, music, favicon, css, and js on the separate web server and vice versa.

My question is how do I get it work like the c453 website where the RequestHandlers and regular website requests work like they're using the same IP and port?

Any help with this would be appreciated, thanks!
80 is their main server and 8080 is their testing server
Quote Originally Posted by BlackRayquaza View Post
80 is their main server and 8080 is their testing server
What exactly have you answered here? Nothing....

Now, maybe someone that actually understands private servers and networking can help me out.

So, how is it they are using port 80 for the website server and the game server?
Quote Originally Posted by kao00723 View Post
What exactly have you answered here? Nothing....

Now, maybe someone that actually understands private servers and networking can help me out.

So, how is it they are using port 80 for the website server and the game server?

Quote Originally Posted by kao00723 View Post
c453 website accessible at port 80 and 8080
c453 private server accessible at port 80 and 8080
Please read your own posts
The game server isn't port 80. It is port 2050.

And for the website server, what are you talking about? The website is where the client is placed. That is it

The actual server is hosted on a VPS from Ossimic's image from another thread
Quote Originally Posted by kao00723 View Post
Are they hosting their website and private server on the same exact IP and ports? How is that even possible?
We have combined the website server and private server, if that's what you're asking.
You can't run one without the other.
Quote Originally Posted by donran View Post
We have combined the website server and private server, if that's what you're asking.
You can't run one without the other.
Very interesting. So when you run "server.exe" from the private server it starts the actual website where the client is hosted as well.

Would love to know how to get it to work like that. I'd pay for that information.
Quote Originally Posted by kao00723 View Post
Very interesting. So when you run "server.exe" from the private server it starts the actual website where the client is hosted as well.

Would love to know how to get it to work like that. I'd pay for that information.
It doesn't "start the website", it starts a web server.
You don't really need to pay for that information, you can just Google something like "C# webserver basic shizzle" etc.
Quote Originally Posted by donran View Post
It doesn't "start the website", it starts a web server.
You don't really need to pay for that information, you can just Google something like "C# webserver basic shizzle" etc.
Thank you for the responses. I've been researching this for a couple days now but wasn't quite sure how yours was implemented.

Was the code for this solely added to the Program.cs under the Server project or were there additional .cs files created? Would it be possible for you to show me a snippet where this code was added?

And again, thank you for taking the time to respond donran.
Quote Originally Posted by kao00723 View Post
Thank you for the responses. I've been researching this for a couple days now but wasn't quite sure how yours was implemented.

Was the code for this solely added to the Program.cs under the Server project or were there additional .cs files created? Would it be possible for you to show me a snippet where this code was added?

And again, thank you for taking the time to respond donran.
I haven't really looked into this code, but maybe @C453 or @ossimc82 could give some more information.
Well, I made the webserver (database server for char/list requests and stuff) able to process html and other webfiles, so the client uses port 80 and the website(c453.pw) uses also port 80 by default:

The requests if you load the webpage:
Quote Originally Posted by ossimc82 View Post
Well, I made the webserver (database server for char/list requests and stuff) able to process html and other webfiles, so the client uses port 80 and the website(c453.pw) uses also port 80 by default:
Yeah I figured it was something like this, definitely an interesting way of doing it instead of having to edit the production client to somehow accept two different IP's.

Thanks for the information!
Quote Originally Posted by kao00723 View Post
Yeah I figured it was something like this, definitely an interesting way of doing it instead of having to edit the production client to somehow accept two different IP's.

Thanks for the information!
Why would it need 2 diffrent ip's? Also the reason you can access c453.pw on 2 diffrent ports is because they are 2 diffrent servers.
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us