Re: Unable to create an ENet Server.
Posted: 19 Nov 2011, 07:25
Were you able to figure something out?
Feel the mana power growing inside you!
https://forums.themanaworld.org/
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.Crush wrote:Can you please post in public, so that others can learn from it too?
[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
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.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): Best regards,
Bertram
Still doesn't connect, used the portable mana client, the nightly version, and compiled the client myself. No luck.Ablu wrote:Does it work now?
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...
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
Code: Select all
cmake -DENABLE_MANASERV=on .
The option to choose between tmw and manaserv is no longer showing and I'm not really sure where exactly I should enable it.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).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: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
https://github.com/mana/mana/blob/maste ... ts.txt#L33
Try those to make it work:Best regards,Code: Select all
cmake -DENABLE_MANASERV=on .
Bertram