Jordan Stirzaker Posted December 3, 2012 Posted December 3, 2012 Title: Failed to connect to server Version: 3.1.2 OS: Windows 7 home premium 64bit Java Version: Java 7 update 9, 32 and 64bit installed Description of Problem: I am attempting to run my 3.1.2 tekkit server but cannot connect. I can run the server and connect on a different computer but not on the one the server is running on. Error Messages: java.net.socketexception: permision denied: connect Error Log: Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Connect to 'localhost'. When i attempted to connect to local host i got "Failed to connect to server" "Connection refused: connect" Any idea? Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 When i attempted to connect to local host i got "Failed to connect to server" "Connection refused: connect" Any idea? Last time I got "Connection refused: connect" is when for some reason I needed to add the port after it. Try 'localhost:YOURPORT'. 'YOURPORT' should be the port your server is running on. You can find this by looking in server.properties (open with Notepad). Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Last time I got "Connection refused: connect" is when for some reason I needed to add the port after it. Try 'localhost:YOURPORT'. 'YOURPORT' should be the port your server is running on. You can find this by looking in server.properties (open with Notepad). I tried that and again i got the same results. Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 I tried that and again i got the same results. Have you tried using your external IP address? Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Have you tried using your external IP address? You mean using something like hamachi because that's what my server is running on? Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 You mean using something like hamachi because that's what my server is running on? Nonono, your external IP address. Open Command Prompt and type in 'ipconfig'. The 'IPv4 address' is your external IP. Try connecting to that. Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Nonono, your external IP address. Open Command Prompt and type in 'ipconfig'. The 'IPv4 address' is your external IP. Try connecting to that. That's another thing, my ipconfig doesn't work, it says 'ipconfig' is not recognized as an internal or external command, operable program or batch file. I've only had the computer a couple of days, yet so many problems occurring. Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 Go to C:\Windows\system32 and find the .exe file called 'ipconfig'. Tell me if it is there or not. Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Go to C:\Windows\system32 and find the .exe file called 'ipconfig'. Tell me if it is there or not. yes there is an application called 'ipconfig' Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 Okay, now follow these steps. Open start menu, open Computer, open C:\Windows\system32 If you are on Windows 7 or Vista, click the bar at the top and select all the text and copy it Open start menu, right-click Computer, click Properties, click Advanced System Settings then click Environment Variables Under 'System variables' find Path. Click on it then click Edit If there is text already in value, add a ';' to the end. If not, skip this step In the box (or after the ';' if you done the previous step), paste Open Command Prompt and try typing ipconfig again. Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Under the PATH i have this after adding the semi colon ( ; ), C:\Program Files\Java\jre7\bin; But my ipconfig still doesn't work even if i run cmd as an admin. Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Under the PATH i have this after adding the semi colon ( ; ), C:\Program Files\Java\jre7\bin; But my ipconfig still doesn't work even if i run cmd as an admin. oops sorry, i miss understood It does work thank you, i now have ipconfig working. Thank you very much. Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Okay, now follow these steps. Open start menu, open Computer, open C:\Windows\system32 If you are on Windows 7 or Vista, click the bar at the top and select all the text and copy it Open start menu, right-click Computer, click Properties, click Advanced System Settings then click Environment Variables Under 'System variables' find Path. Click on it then click Edit If there is text already in value, add a ';' to the end. If not, skip this step In the box (or after the ';' if you done the previous step), paste Open Command Prompt and try typing ipconfig again. Now that's fixed the server is still not working. :/ Quote
0 Magister Posted December 3, 2012 Posted December 3, 2012 permission denied and connection refused shows that something is activly shuting down the connection or forcefully closing the port, that points to either a firewall or av program that is doing it double check the port setting for the server in server properties and add it to the at the end of the ip when trying to connect, and dont use localhost use 127.0.0.1:port if you are running it on the same machine Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 permission denied and connection refused shows that something is activly shuting down the connection or forcefully closing the port, that points to either a firewall or av program that is doing it double check the port setting for the server in server properties and add it to the at the end of the ip when trying to connect, and dont use localhost use 127.0.0.1:port if you are running it on the same machine So how do i add the port to the end i tried ;25565 but that didn't do anything it said unknown host. Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 It would be like so: 127.0.0.1:25565 Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 It would be like so: 127.0.0.1:25565 I'm sure you can guess, i got "Connection refused: connect" I wish someone knew what was wrong. Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 Does it let you connect using other computers? Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 I tried it with my laptop yesterday and it connected, so yeah. I did actually connect on this computer at one point, when i first made the server i tried it and it worked, but i never actually played it. That probably just confuses things further but yeah. Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 It's your antivirus and firewall then. You may have Windows Firewall on. Here's how to turn it off: http://windows.microsoft.com/en-GB/windows-vista/Turn-Windows-Firewall-on-or-off Norton/Norton 360/Norton Antivirus/Norton Internet Security:http://www.sfrep.com/knowledgebase/?id=1269 AVG: http://answers.yahoo.com/question/index?qid=20080816043929AAB4mQw Kaspersky: http://support.kaspersky.com/faq/?qid=208280425 Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 It's your antivirus and firewall then. You may have Windows Firewall on. Here's how to turn it off: http://windows.microsoft.com/en-GB/windows-vista/Turn-Windows-Firewall-on-or-off Norton/Norton 360/Norton Antivirus/Norton Internet Security:http://www.sfrep.com/knowledgebase/?id=1269 AVG: http://answers.yahoo.com/question/index?qid=20080816043929AAB4mQw Kaspersky: http://support.kaspersky.com/faq/?qid=208280425 I turned both my firewall and BullGuard AV off and that did not do anything i still got the same message, so i've reactivated them. Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 I turned both my firewall and BullGuard AV off and that did not do anything i still got the same message, so i've reactivated them. Open server.properties and paste the entire file? Quote
0 Jordan Stirzaker Posted December 3, 2012 Author Posted December 3, 2012 Okay, here you go. #Minecraft server properties #Fri Nov 30 15:39:13 GMT 2012 allow-nether=true level-name=Tekkit1 enable-query=false allow-flight=true server-port=25565 level-type=DEFAULT enable-rcon=false level-seed= server-ip=25.167.88.10 max-build-height=256 spawn-npcs=true white-list=false spawn-animals=true online-mode=true pvp=fasle difficulty=1 gamemode=0 max-players=5 spawn-monsters=true generate-structures=true view-distance=10 motd=A Minecraft Server Quote
0 UKSp0ng3 Posted December 3, 2012 Posted December 3, 2012 Okay, here you go. #Minecraft server properties #Fri Nov 30 15:39:13 GMT 2012 allow-nether=true level-name=Tekkit1 enable-query=false allow-flight=true server-port=25565 level-type=DEFAULT enable-rcon=false level-seed= server-ip=25.167.88.10 max-build-height=256 spawn-npcs=true white-list=false spawn-animals=true online-mode=true pvp=fasle difficulty=1 gamemode=0 max-players=5 spawn-monsters=true generate-structures=true view-distance=10 motd=A Minecraft Server You should delete the IP you set after the server-ip= Then try launching the server and connecting again. Quote
Question
Jordan Stirzaker
Title: Failed to connect to server
Version: 3.1.2
OS: Windows 7 home premium 64bit
Java Version: Java 7 update 9, 32 and 64bit installed
Description of Problem:
I am attempting to run my 3.1.2 tekkit server but cannot connect. I can run the server and connect on a different computer but not on the one the server is running on.
Error Messages:
java.net.socketexception: permision denied: connect
Error Log:
33 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.