Can't log into admin portal

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

sethpeck
Posts: 2
Joined: 05 Jul 2011, 18:27

Can't log into admin portal

Postby sethpeck » 05 Jul 2011, 19:40

I have installed an instance of SFS2X onto a redhat machine. I can get to the Admin page just fine, but whenever I try to login I get this error message:

Code: Select all

The following error occurred during login: Invalid administration TCP port


I can only access this page from a remote location. The allowedRemoteAddresses element has no values in server.xml, and I have not changed the port numbers (9933). While watching the SFS2X log files, it does note that it received a request to login with this error:

Code: Select all

16:32:43,317 WARN  [pool-1-thread-2] managers.SFSExtensionManager     - com.smartfoxserver.v2.exceptions.SFSLoginException: Admin login refused to user 'admin': invalid TCP port


I've read all the posts related to this issue and added binding as appropriate (tried localhost, lan ip, remote ip, all to no avail), and still get this error message.

I should note that I only get it once; if I try to login again without refreshing the page, I get the error message:

Code: Select all

Unable to connect to xx.xx.xx.xx:9933


And no corresponding error in the smartfox log.

Any help is appreciated.

Thanks,
Seth
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 07 Jul 2011, 10:52

In the server.xml file, set the <adminTcpPort> setting to -1. That should work.
Paolo Bax
The SmartFoxServer Team
sethpeck
Posts: 2
Joined: 05 Jul 2011, 18:27

Postby sethpeck » 07 Jul 2011, 15:01

Thanks, that worked.
zanozza
Posts: 19
Joined: 28 Jan 2013, 17:25

Re: Can't log into admin portal

Postby zanozza » 07 Feb 2013, 02:26

Hi!

This helps me too! Thank you!

But would you be so kind to explain a little bit about setting <adminTcpPort> to -1 please?

Should I still use this parameter later, in commercial using of my server?

I've tried to find any docs about this but can't :(

Thank you in advance!
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Can't log into admin portal

Postby Bax » 07 Feb 2013, 08:06

http://docs2x.smartfoxserver.com/Gettin ... emoteadmin
If you set it to a port number, you will be able to connect to the server using that port only (so it must be open in your firewall).
Paolo Bax
The SmartFoxServer Team
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: Can't log into admin portal

Postby Carl Lydon » 14 Aug 2016, 17:38

It didn't work for me. We think maybe the server admin guys changed some settings or something...

How do I know what port to try? I'm trying 9933 but I don't know if that's the open port now or not...
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Can't log into admin portal

Postby Lapo » 15 Aug 2016, 09:31

Out of the box SFS2X runs on port 9933 and so does the AdminTool. If your server admin changed those settings there's not much we can suggest other than contacting him directly and asking. You may also need to ask him the admin credentials.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 54 guests