Unable to create an ENet Server.

Ask for help regarding any technical issue or report any bug or OS independent issues.
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Were you able to figure something out?
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
User avatar
Bertram
Manasource
Manasource
Posts: 1026
Joined: 07 Sep 2004, 14:55
Location: France

Re: Unable to create an ENet Server.

Post by Bertram »

Hi Visaboy,

You've got a PM ;)

Best regards,

Yohann
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Received and replied :P
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Unable to create an ENet Server.

Post by Crush »

Can you please post in public, so that others can learn from it too?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Crush wrote:Can you please post in public, so that others can learn from it too?
Basically if you are behind a router you can't use the public IP, it needs to be the IPv4 Address which is usually 192.168.0.xxx because if a public IP is used then the account server closes up showing an "Unable to create an ENet Server" error in the logs.

But after opening the ports in the router settings and trying to connect to the local server using the IPv4 Address, localhost, Public IP or 127.0.0.1 the client can't connect to the server.

Client v2012.02.29.0313 (nightly).

PS: I also tried different ports with no success.
[01:52:22.93] Network::Connecting to 192.168.0.198:9601
[01:52:22.93] Window::Window("")
[01:52:23.93] Error in SDLNet_TCP_Open(): Couldn't connect to remote host
[01:52:23.93] Network error: Couldn't connect to remote host
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Unable to create an ENet Server.

Post by Ablu »

I think in the nightlies ManaServ support is disabled at compile time (Is ManaServ option in the server combobox?). I am not sure whether there are builds with manaserv enabled. You could try to compile using codeblocks and enabling manaserv support there (-DENABLE_MANASERV=ON on cmake). But I am not sure whether that is possible in the codeblocks files... Or you can try to find someone that can crosscompile for you.

Best regards
Ablu
User avatar
Bertram
Manasource
Manasource
Posts: 1026
Joined: 07 Sep 2004, 14:55
Location: France

Re: Unable to create an ENet Server.

Post by Bertram »

Hi,

As requested from Crush, I'll post in public:

The problem is that visaboy seem to be trying to connect to the servers computer using a local ip (192.168.0.x) but from a computer that is external from that network.

I indicated him to try to connect using the public's router ip, after seting up a redirect in the router's config for the manaserv's ports.

Everything is in this document (I'll turn it into a wiki page as soon as I've got the time to):
Configuring Manaserv for public use.zip
(28.1 KiB) Downloaded 103 times
Best regards,

Bertram
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Bertram wrote:Hi,

As requested from Crush, I'll post in public:

The problem is that visaboy seem to be trying to connect to the servers computer using a local ip (192.168.0.x) but from a computer that is external from that network.

I indicated him to try to connect using the public's router ip, after seting up a redirect in the router's config for the manaserv's ports.

Everything is in this document (I'll turn it into a wiki page as soon as I've got the time to):
Configuring Manaserv for public use.zip
Best regards,

Bertram
Like I said, I'm not connecting from any other external network. Everything is running locally and in the same computer, same network, same IP address. :wink:
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Unable to create an ENet Server.

Post by Ablu »

Does it work now?
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Ablu wrote:Does it work now?
Still doesn't connect, used the portable mana client, the nightly version, and compiled the client myself. No luck.
Tried different ports, different IPs, excluded the computer from the router and removed all security settings. No luck.

:?

Code: Select all

[23:08:20.70] Mana v0.6.0.0
[23:08:20.70] Initializing SDL...
[23:08:20.72] Initializing resource manager...
[23:08:20.72] Adding to PhysicsFS: data
[23:08:20.72] Adding to PhysicsFS: data
[23:08:20.72] Adding to PhysicsFS: data\branding\data
[23:08:20.72] Adding to PhysicsFS: C:\Users\ServerM\Desktop\TheManaWorldPortable\App\TheManaWorld\..\..\Data\settings
[23:08:20.72] Loading icon from file: data\branding\data/icons/tmw.ico
[23:08:20.72] Setting video mode 800x600 windowed
[23:08:20.72] Bits per pixel: 0
[23:08:21.25] Using video driver: windib
[23:08:21.25] Possible to create hardware surfaces: no
[23:08:21.25] Window manager available: yes
[23:08:21.25] Accelerated hardware to hardware blits: no
[23:08:21.25] Accelerated hardware to hardware colorkey blits: no
[23:08:21.25] Accelerated hardware to hardware alpha blits: no
[23:08:21.25] Accelerated software to hardware blits: no
[23:08:21.25] Accelerated software to hardware colorkey blits: no
[23:08:21.25] Accelerated software to hardware alpha blits: no
[23:08:21.25] Accelerated color fills: no
[23:08:21.25] Available video memory: 0
[23:08:21.25] Loaded data/graphics/gui//colors.xml
[23:08:21.25] Loaded data\branding\data/graphics/gui/wood/colors.xml
[23:08:21.25] Initializing GUI...
[23:08:21.26] Sound::init() Initializing sound...
[23:08:21.44] Sound::info() SDL_mixer: 1.2.7 (compiled)
[23:08:21.44] Sound::info() SDL_mixer: 1.2.7 (linked)
[23:08:21.44] Sound::info() Driver: dsound
[23:08:21.44] Sound::info() Format: S16LSB
[23:08:21.44] Sound::info() Rate: 22050
[23:08:21.44] Sound::info() Channels: 2
[23:08:21.45] Window::Window("Setup")
[23:08:21.45] Loading skin 'window.xml'.
[23:08:21.45] Loaded data\branding\data/graphics/gui/wood/window.xml
[23:08:21.45] Theme::load(): <skinset> defines 'window.png' as a skin image.
[23:08:21.45] Finished loading skin.
[23:08:21.46] Popup::Popup("TextPopup")
[23:08:21.55] State: CHOOSE SERVER
[23:08:21.55] Window::Window("Choose Your Server")
[23:08:21.55] Starting download: http://manasource.org/serverlist.xml
[23:08:21.55] Downloading: http://manasource.org/serverlist.xml
[b][23:08:21.76] Ignoring server entry with unknown type: manaserv
[23:08:21.76] Ignoring server entry with unknown type: manaserv[/b]
[23:08:22.74] Window::Window("Custom Server")
[23:08:26.14] Window::~Window("Custom Server")
[23:08:26.72] Canceling download: http://manasource.org/serverlist.xml
[23:08:26.74] Canceling download: http://manasource.org/serverlist.xml
[23:08:26.74] Window::~Window("Choose Your Server")
[23:08:26.74] State: CONNECT SERVER
[23:08:26.74] Network::Connecting to 127.0.0.1:9601
[23:08:26.74] Window::Window("")
[b][23:08:27.75] Error in SDLNet_TCP_Open(): Couldn't connect to remote host[/b]
[23:08:27.75] Network error: Couldn't connect to remote host
[23:08:27.77] Window::~Window("")
[23:08:27.77] State: ERROR
[23:08:27.77] Error: Couldn't connect to remote host
[23:08:27.77] Window::Window("Error")
[23:08:28.86] Window::~Window("Error")
[23:08:28.87] State: CHOOSE SERVER
[23:08:28.87] Window::Window("Choose Your Server")
[23:08:28.88] Starting download: http://manasource.org/serverlist.xml
[23:08:28.88] Downloading: http://manasource.org/serverlist.xml
[b][23:08:29.08] Ignoring server entry with unknown type: manaserv
[23:08:29.08] Ignoring server entry with unknown type: manaserv[/b]
[23:08:30.07] Canceling download: http://manasource.org/serverlist.xml
[23:08:30.07] Window::~Window("Choose Your Server")
[23:08:30.07] State: EXIT
[23:08:30.07] Window::~Window("Setup")
[23:08:30.07] Popup::~Popup("TextPopup")
[23:08:30.07] Sound::close() Shutting down sound...
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 1 reference to graphics/gui//progress-indicator.png[32x32]
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 4 references to graphics/gui//tab_arrows_left.png
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 4 references to graphics/gui//tab_arrows_right.png
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 9 references to graphics/gui/wood/button.png
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 9 references to graphics/gui/wood/button_disabled.png
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 9 references to graphics/gui/wood/buttonhi.png
[23:08:30.42] ResourceManager::~ResourceManager() cleaning up 9 references to graphics/gui/wood/buttonpress.png
[23:08:30.42] Quitting
[23:08:30.42] Configuration::write() writing configuration...
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
User avatar
Bertram
Manasource
Manasource
Posts: 1026
Joined: 07 Sep 2004, 14:55
Location: France

Re: Unable to create an ENet Server.

Post by Bertram »

Hi Visaboy,

In the log you posted, Manaserv support is disabled: (And it seems you know it since you put a 'b' tag around it).

Code: Select all

[23:08:29.08] Ignoring server entry with unknown type: manaserv
[23:08:29.08] Ignoring server entry with unknown type: manaserv
Can you tell me, when adding a server if you see manaserv on the server type dropdown box? If not, you'll have to change your compilation options:
https://github.com/mana/mana/blob/maste ... ts.txt#L33

Try those to make it work:

Code: Select all

cmake -DENABLE_MANASERV=on .
Best regards,

Bertram
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Bertram wrote:Hi Visaboy,

In the log you posted, Manaserv support is disabled: (And it seems you know it since you put a 'b' tag around it).

Code: Select all

[23:08:29.08] Ignoring server entry with unknown type: manaserv
[23:08:29.08] Ignoring server entry with unknown type: manaserv
Can you tell me, when adding a server if you see manaserv on the server type dropdown box? If not, you'll have to change your compilation options:
https://github.com/mana/mana/blob/maste ... ts.txt#L33

Try those to make it work:

Code: Select all

cmake -DENABLE_MANASERV=on .
Best regards,

Bertram
The option to choose between tmw and manaserv is no longer showing and I'm not really sure where exactly I should enable it.
I have changed OPTION(ENABLE_MANASERV "Enable Manaserv support" OFF) to OPTION(ENABLE_MANASERV "Enable Manaserv support" ON), but that didn't make any difference.

Where do you want me to place the "cmake -DENABLE_MANASERV=on ."?

I'm using Code::Blocks 10.05

Thank you.
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Unable to create an ENet Server.

Post by Ablu »

I do not have codeblock installed here. But you could try to edit the mana.cbp and append (-DENABLE_MANASERV) it after line 24. so append:
<Add option="-DENABLE_MANASERV" />

Best regards
Ablu
User avatar
Bertram
Manasource
Manasource
Posts: 1026
Joined: 07 Sep 2004, 14:55
Location: France

Re: Unable to create an ENet Server.

Post by Bertram »

Hi,

Ablu's explanation is fine.

If you want to do it using the GUI, you'll have to go into this menu once the project is opened:

Project-> Build Options... -> Click on the '#defines' tab of the Compiler settings and add: ENABLE_MANASERV there.

Regards,

Bertram
User avatar
visaboy
Peon
Peon
Posts: 29
Joined: 09 Jan 2011, 06:19

Re: Unable to create an ENet Server.

Post by visaboy »

Was was support removed from the project to begin with?
Is it no longer being developed?
“If it moves, fondle it - except porcupines, ball lightning, and policemen” :)
Post Reply