There must be something wrong with your router..., or you don't have enough RAM to host a server so it just screws up, but that would be very surprising... Or maybe... hm... did you try to connect using Advanced Connection with 127.0.0.1 ? On my server I have to do that cause it doesn't let me connect normally... And can other people connect to your server?
help my server says when i log onto to it Error while connected to server -- Received error n�0: Connection refused does any know what this means??if so please respond quickly:
Use localhost in advanced connection. If that doesn't work, ask if others can get on your server. If not then you may need to unblock it on your router/firewall. For connecting to your own server, you must always use localhost.
n�0 error normally means that your router is blocking the ports that your server needs go online. Do what Zero suggested, if it doesn't connect. You need to port forward. http://portforward.com/ <--- provides guides and a auto port forwarding via downloading their software.... The guide was useful but it won't allow me to port forward. Look for your router make (brand) and model on that list. Doing it manually: Go to start (Flag) > Search "cmd" > Right click on cmd and run as admin > Type in "ipconfig /all" without the quotes > Find and copy your default gateway code > Enter that in the URL of a browser. That should open up your router config. You need a login... refer to this site ----> http://www.routerpasswords.com/ Once logged in, scroll down http://portforward.com/ and find your router. Which then leads to a guide. If you can't, try to google "how to port forward (router brand)" For this part i can't help, because every ISP (internet service provider) has a different way to allow you to port forward. The best way is to find a guide. Good luck~~~
I'm running a PO server on another server (which is using Linux, so I am using Putty). Everything works out fine, I can join, and a friend can join, so it's working. However, once a script line is too long, it will automatically break into two pieces, which then won't be recognized. So I'm unable to load up my script (which I really want). Is there anyway to stop the line from breaking in two? Example: It should be: sys.sendHtmlAll("<timestamp/><b> The server (...) and has deleted the first 500 entries.</b>", 0); However, it becomes: sys.sendHtmlAll("<timestamp/><b> The server has detected the IP-Last Alias list to be too large and has deleted the first 500 entries.</b>", 0);
Help i am getting this error Error while connected to server -- Received error n°0: Connection refused what shoul i do?
You haven't port forwarded yet. Use http://www.portforward.com to port your server. the default port is 5080 or you can use 4080. doesn't matter. If you don't know your IP Address hit "start" then "run" and type "cmd" and a black box should come up. In the box type "ipconfig" or "ipconfig/all" and find where is says "IP Address: " and the LAST number is the number you use to port. Then you can exit teh box and port your IP Address. Open your Server and it should work fine ._.
How exactly do you edit you scripts? It seems this is the problem of your editor (or Putty), try using nano, it's pretty user-friendly, or editing the file on your pc and uploading it on the server with ftp or whatever else.
I am using nano. I edit the file using Notepad++ on my pc, select everything, copy it and then place it in nano.
Copypasting :X Learn SCP/SFTP. Get Winscp or FileZilla if you are using Windows, Linux and Mac have buildin scp-tool. It will allow you to transfer files without copypasting.
Is it possible to run the server on Unix in Daemon mode? FYI: I've tried "./start-server --headless --daemon", but it doesn't work. And what you said above worked, thanks for that.
You can add an ampersand (&) at the end of your command - this will make the server run in the background so it won't shut down after you close your shell. The right way to make it a daemon is to write a script for that, see daemon_opensuse as a reference.
Spoiler #! /bin/bash NAME=Server PID=/var/run/pokemon.pid DAEMON=/home/wander/pokemon-online/bin/start-server ARGS="--headless 2>/var/log/pokemon.log 1>/var/log/pokemon.log" USER=wander case "$1" in start) echo 'Starting server ...' /sbin/start-stop-daemon -Sbq --name $NAME --pidfile $PID --startas $DAEMON --chuid $USER -- $ARGS sleep 1 echo $? ;; stop) echo 'Stopping server ...' /sbin/start-stop-daemon --stop --user $USER --name $NAME sleep 1 echo $? ;; *) echo "Usage: /etc/init.d/pokemon2 {start|stop}" esac[/HIDE] My brother wrote this. Everything works now. This script was written for Debian.
@rougestellar, you port forwarded wrong then. Make sure to port it to "PO Server" and use "5080" for default port or you can use others like "4080", doesn't matter.. @supermoose it doesn't show because you choose "zbattle.net" not Pokemon Online.
I have another problem and a question; The 'step' function in my script doesn't work on my Linux server. It does, however, work on my Windows laptop. Is this a common problem, or am I the only one with it? And, is there a directory where there is some kind of JavaScript logging file?
Debian/squeeze 2.6.32, step works fine. Are you sure you don't have an error in your scripts? And js errors are logged in the server's log file.
My scripts are fine, since the step function does work on my Windows laptop. And where can I find this server's log file?
Error while connected to server -- Received error n°7: Connection timed out I can connect to my server while others are getting this error,how can i correct this?
Forwards the ports if you are behind a NAT / allow it through your computer's personal firewall. Use www.portforward.com
Also guys make sure you port your I.P Address correctly and port it to "PO Server". Also if you ported right but still doesn't work go in to Options then Config and where it says Port make sure those 4 numbers are the same ones you ported. So if you ported 4080 then type 4080 , then restart your server >_<
Ok so I was wondering...the internet I use is shared from my phone is there a way i can run a server through it
You mean like run your Server.exe with your Phone? Their is not a way currently. Pokemon Online Android Dev. Team might make it possible with ONLY an Android Phone. But their is no current way to run a Server with your Phone. Sorry !
If you have a computer that is using the phone to connect to the internet, you can run the server on the computer. Connection probably isn't suitable for hosting a server though, because even if you get good speeds you will still likely have high latency.
Depends on your mobile internet. They started recently NATing 3G-connections here... which means that hosting a server behind a NAT wall is impossible.
Is it just me, or is the file for the Windows Server now a .7z file? I thought it used to be .rar file.
is there anyway I can get this to work with my university internet, it's classed as a LAN connection in my network and sharing centre, and it's a wired connection. I have no router so all steps of port forwarding are unhelpful. I can make and connect to my own server, but nobody can join. Much appreciated
That is something you need to ask from your university's network administrators. They are able (if the policy allows) to open ports for others to connect to your server.
OMG U are awesome for making this guide.Just one question-How can someone else connect on my server? If i connect using 127.0.0.1 (local) wouldn't that mean that if someone else typed that it would take them to their own server?
What would "Error while connected to server -- Received error n°7: Connection timed out" indicate? Sorry if someone already asked this, but I didn't see an answer for it...
Make sure you have port forwarded correctly. Also, are you able to connect to your server using 127.0.0.1:5080 in advanced connection?
Just keep the server application up. If you want to you could keep it in the tray so it's not in your way.