Author Topic: I'm having port problems again, and I need a solution.  (Read 2261 times)

I PM'd this message to a few known coders. For any outsiders, can anybody help?



Hello! So basically my server stops working every once in a while, and I don't know why. My server, to be specific, is a Dedicated server in a datacenter running "Windows Server 2008 R2 Enterprise".  In the console.log, it is echoing
Code: [Select]
Starting Internet Server
Binding server port to default IP
UDP initialized on port 28125

Initializing UPnP...
--------------------
UPnP Discovery Failed
--------------------

To host on port 28125, I am running .bat with this inside:
Code: [Select]
"C:\Program Files (x86)\Blockland\BlocklandLauncher.exe" -dedicated -profilePath "C:\Users\My.RealName\Desktop\Server2" -port 28125
along with changing the default port in config/server/prefs
Code: [Select]
$Pref::Server::Port = "28125";
Some things I have tried to fix it:
Reinstalling blockland
Rebooting my server
Copying over all of the files on my personal computer to the server (IDK)
Launching the dedicated server without the .bat (On port 28000)

Some things I have not tried, because I can not try:
Port forwarding. Why? Because it is a dedicated server and there is no way for me to get into my port forward settings, like most people have suggested in this thread.

Just in case you need it, here is my blockland folder. Any help towards getting my server working is appreciated. Also, a few things to add:
-The problem fixes itself after a few days, but will occur again in <2 months (But has not fixed itself since Saturday)
-I have tried multiple ports through the same method
-I have multiple instances of blocklands running at the same time all running on different ports, all of which do not work because of this problem.
-I have been having this problem for 2.5 years or so, and could overlook it for the most part, and just avoid the server. But it is getting annoying and bothersome at this point, because it seems to be happening more often.
-There are no firewall restrictions to blockland, and if there were, I doubt they would randomly come into play at random intervals.

I myself do not know much about ports and stuff in this realm, but my father knows a great deal, and that so, him and I would like to know why this problem occurs, how port forwarding would fix it(even thought I cannot port forward), how to prevent it, and most importantly, how to fix it by any normal means. If I am being in-descriptive, or not making sense in any parts, please tell me and I will try and make it more clear. Thank you for taking the time to read this, I hope that you will get back to me soon!

You're going to have to figure out the port forwarding situation because the dedicated server doesn't have UPnP.

Chances are someone might be using the same port in the datacenter, try changing ports, over and over again.

Chances are someone might be using the same port in the datacenter, try changing ports, over and over again.
Have tried this, and chances are, out of my 4 servers, somebody doesn't use all of them at the same time.

There's really no solution then since you've said to me that you don't have control on port forwarding.

Contact your hosting provider and ask them to/how to forward the port?

Contact your hosting provider and ask them to/how to forward the port?
i did this when i was having trouble and they simply said they dont provide those services, chances are they will do it for op too

worth a shot though

Contact your hosting provider and ask them to/how to forward the port?
The server is mine, it is just stored in a datacenter. The problem is that I do not have the control pannel options to port forward, like you to on local servers / computers.

You're misunderstanding Zeblote

You're misunderstanding Zeblote
Then please elaborate on what he meant.

The server is mine, it is just stored in a datacenter. The problem is that I do not have the control pannel options to port forward, like you to on local servers / computers.
Port forwarding is an option found in your router/modem

The server is mine, it is just stored in a datacenter. The problem is that I do not have the control pannel options to port forward, like you to on local servers / computers.
If you can't control the router, contact whoever is in charge of it? That would've been the first thing for me to try.

You could also try disabling uPnP and hosting on port 80.

I remember back when I had an ISP called MetaLINK, Port forwarding didn't work and I had to call them up and ask them to actually open a few ports for gaming

1. If you can't control the router, contact whoever is in charge of it? That would've been the first thing for me to try.

2. You could also try disabling uPnP and hosting on port 80.
1. I own the router

2. How do I do this?

1. I own the router

...clearly not? Otherwise you would be able to configure port forwarding. Or is it behind another router? Then again, contact whoever controls that one and ask them how to go about forwarding a specific port to your server.

2. How do I do this?

You should find both in config/server/prefs.cs, I think it's $Pref::Server::Port and $Pref::Net::DisableUPnP.