Could not connect to server

The worst monsters in the Hearthlands warp the fabric of space and time..
svloyso
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Could not connect to server

Post by svloyso »

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.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Post by borka »

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
svloyso
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Post by svloyso »

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.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Post by borka »

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
svloyso
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Post by svloyso »

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.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Post by borka »

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
svloyso
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Post by svloyso »

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.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Could not connect to server

Post by borka »

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
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
svloyso
Posts: 9
Joined: Tue Feb 18, 2014 12:04 pm

Re: Could not connect to server

Post by svloyso »

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.
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

Re: Could not connect to server

Post by Lord_of_War »

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

Return to “Bugs”