Could not connect to server

The worst monsters in the Hearthlands warp the fabric of space and time..

Could not connect to server

Postby svloyso » Fri Feb 21, 2014 2:57 pm

My haven and hearth client says "could not connect to server" even if server is up.
this is java console log:
Missing Application-Name manifest attribute for: http://www.havenandhearth.com/java/haven-res.jar
JNLPClassLoader: Finding library jogl.dll
JNLPClassLoader: Finding library jawt.dll
JNLPClassLoader: Finding library jogl_awt.dll
фев 21, 2014 5:49:29 PM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.


I tried turn off my windows firewall, but it doesn't help.
svloyso
 
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Postby borka » Fri Feb 21, 2014 3:25 pm

WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5


check with regedit whether there is a
Code: Select all
Prefs
key at
Code: Select all
HKEY_CURRENT_USER\Software\JavaSoft\


if not create it
Right click on the JavaSoft folder and click on New -> Key
Name the new Key Prefs

Turning of your Firewall is not recommended, better make exceptions in it for ports: TCP 1871 and UDP 1870
In your Router configuration you might set Port Forwarding for these 2 ports
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Postby svloyso » Fri Feb 21, 2014 3:59 pm

borka wrote:
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5


check with regedit whether there is a
Code: Select all
Prefs
key at
Code: Select all
HKEY_CURRENT_USER\Software\JavaSoft\


if not create it
Right click on the JavaSoft folder and click on New -> Key
Name the new Key Prefs


Key 'Prefs' is exists, and i created new key 'Key Prefs', but it doesn't help. Error and java console log still same.
svloyso
 
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Postby borka » Fri Feb 21, 2014 4:16 pm

delete 'Key Prefs' (not needed)

Anyways i think that message is not related to "could not connect to server" as the client has started properly to show that message

check your Java Security settings
https://www.java.com/ru/download/help/java_blocked.xml -> Workaround

and
Turning of your Firewall is not recommended, better make exceptions in it for ports: TCP 1871 and UDP 1870
In your Router configuration you might set Port Forwarding for these 2 ports
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Postby svloyso » Fri Feb 21, 2014 4:42 pm

borka wrote:delete 'Key Prefs' (not needed)

Anyways i think that message is not related to "could not connect to server" as the client has started properly to show that message

check your Java Security settings
https://www.java.com/ru/download/help/java_blocked.xml -> Workaround

and
Turning of your Firewall is not recommended, better make exceptions in it for ports: TCP 1871 and UDP 1870
In your Router configuration you might set Port Forwarding for these 2 ports


I added http://www.havenandhearth.com in exeption list in java security settings, like as it says here https://www.java.com/ru/download/help/java_blocked.xml
I made exeption for ports TCP 1871 and 1870 in my firewall, but i don't know how set port forwarding in my Router.

But it all doesn't help.
svloyso
 
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Postby borka » Fri Feb 21, 2014 4:53 pm

Normally you access the Routersettings by calling the routersettingspage in your browser - you should have a manual that explains how to for your router model - or you perform a search in the web "port forwarding + Routermodel"

Did you make an exception for UDP port 1870?
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Postby svloyso » Fri Feb 21, 2014 5:17 pm

borka wrote:Normally you access the Routersettings by calling the routersettingspage in your browser - you should have a manual that explains how to for your router model - or you perform a search in the web "port forwarding + Routermodel"

Did you make an exception for UDP port 1870?


I found in google, how to make port forwarding, and i did it.
Yes, i made exception for UDP port 1870.
It still not work.
Java log and error still same.
svloyso
 
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Postby borka » Fri Feb 21, 2014 5:44 pm

try with a custom client like Ender: https://github.com/EnderWiggin/haven-updater/releases (Top one)
To install client you need to download updater.
Download it and put into some folder. Then run this file - it will download client and all require files to that folder.


http://www.havenandhearth.com/forum/vie ... 75#p165075

you need to create a run.bat examples:
http://www.havenandhearth.com/forum/vie ... 27&t=35224
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Postby svloyso » Fri Feb 21, 2014 11:44 pm

borka wrote:try with a custom client like Ender: https://github.com/EnderWiggin/haven-updater/releases (Top one)
To install client you need to download updater.
Download it and put into some folder. Then run this file - it will download client and all require files to that folder.


viewtopic.php?f=27&t=14575#p165075

you need to create a run.bat examples:
viewtopic.php?f=27&t=35224


Doesn't help too.
I downloaded updater.jar, run it, made launcher.bat with command
Code: Select all
"C:\Program Files\Java\jre7\bin\java.exe" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se -r "C:\MyDocs\apps\Haven and hearth"


Run launcher.bat and saw "Could not connect to server" again.
svloyso
 
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Postby Lord_of_War » Fri Feb 21, 2014 11:46 pm

And your ports are open? I remember there being 2 borka.
One death is a tragedy; one million is a statistic. -- Joseph Stalin #1 Forum troll You mad bro?
"My soul is terrifying" "Some men just want to watch the world burn"
http://www.youtube.com/watch?v=5f2M9t_tEhQ
User avatar
Lord_of_War
 
Posts: 1668
Joined: Wed Jul 17, 2013 2:53 am
Location: A long time ago in a land far away

Next

Return to Bugs

Who is online

Users browsing this forum: Claude [Bot], Google [Bot] and 2 guests