Problem FTB Lan Lag - Connection Timeout

putty mcswing

Member
Jul 29, 2019
7
0
10
Hello,
I am hoping someone can help me with the lag/connection timeout problem I am getting with FTB running over a lan (both Open to Lan and Server running over Lan). I have two identical pcs that I am using to play FTB networked using a ADSL router. I am able to see and connect to a game from one pc to the other although after a period of time (sometimes an hour, but usually straight away) I get block lag, rubber banding and eventually a socket/connection timeout error.

I initially tried running it as Open to Lan but have also tried switching to a Server. I am running the server on one of the machines that is being used to play the game.

Both PC are identical, The specs are as follows

Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
16.0 GB RAM
NVIDIA GeForce GTX 660
SSD
Windows 7 Professional, SP1

I am using FTB version v1.43 of the launcher and trying to play Magic Farm 2 v2.1.13

What I have tried
- switch from Open to Lan to a Magic Farm Server
- followed the basic trouble shooting guide on the wiki
- Reinstall FTB - installed in c:\FTB to avoid any permission issues
- Reinstall Java (currently using Java 64bit 1.8.0_11-B12)
- disable both windows firewall and avast firewall (seemed to fix the problem)
- Add a rule for Javaw.exe to windows firewall
- Add a Port Rule windows firewall
- Tried a few different versions of Java extensions after looking at this thread (http://forum.feed-the-beast.com/threads/server-lag.2501/) to the bat file used to start the server, currently using

java -server -Xincgc -Xmx6G -Xms512M -Xmn1G -XX:NewRatio=2 -XX:CMSFullGCsBeforeCompaction=1 -XX:SoftRefLRUPolicyMSPerMB=2048 -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:+DisableExplicitGC -Xnoclassgc -XX:+UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction=90 -XX:+UseConcMarkSweepGC -XX:UseSSE=4 -XX:+UseCMSCompactAtFullCollection -XX:parallelGCThreads=4 -XX:+AggressiveOpts -XX:+UseLargePages -XX:ReservedCodeCacheSize=1G -cp FTBServer-1.6.4-965.jar -jar FTBServer-1.6.4-965.jar
pause

Can anyone help? I think the issue could be solved with the right extensions in the bat file because it feels like the server pc is just not giving priority to the game, although I have tried different versions of the extensions and I just cannot work it out. Also I realise that the server is only getting 512m of ram with the config above but if I change Xms to anything apart from 512m I get an error stating that JAVA_OPTIONS: -Xmx512M - JVM cannot us large page memor because it does not have enough privilege to lock pages in memory. Any advice on how I fix this as well would be appreciated.[DOUBLEPOST=1414143687,1413803045][/DOUBLEPOST]Hello,

Still can't fix this.

It seems to work for a while after I haven't played for a few days then slowly the connecting PC gets more and more block lag until eventually I cannot connect.

Any ideas would be appreciated.[DOUBLEPOST=1414227848][/DOUBLEPOST]Hello,

Tried changing channels on my router. Downgraded Java still having issues

This is the lag when I get the connection timeout error

2014-10-25 20:02:13 [INFO] [STDERR] java.net.SocketException: Software caused connection abort: recv failed
2014-10-25 20:02:13 [INFO] [STDERR] at java.net.SocketInputStream.socketRead0(Native Method)
2014-10-25 20:02:13 [INFO] [STDERR] at java.net.SocketInputStream.read(Unknown Source)
2014-10-25 20:02:13 [INFO] [STDERR] at java.net.SocketInputStream.read(Unknown Source)
2014-10-25 20:02:13 [INFO] [STDERR] at java.io.FilterInputStream.read(Unknown Source)
2014-10-25 20:02:13 [INFO] [STDERR] at org.bouncycastle.crypto.io.CipherInputStream.nextChunk(Unknown Source)
2014-10-25 20:02:13 [INFO] [STDERR] at org.bouncycastle.crypto.io.CipherInputStream.read(Unknown Source)
2014-10-25 20:02:13 [INFO] [STDERR] at java.io.DataInputStream.readUnsignedByte(Unknown Source)
2014-10-25 20:02:13 [INFO] [STDERR] at net.minecraft.network.packet.Packet.func_73272_a(Packet.java:145)
2014-10-25 20:02:13 [INFO] [STDERR] at net.minecraft.network.TcpConnection.func_74447_i(TcpConnection.java:325)
2014-10-25 20:02:13 [INFO] [STDERR] at net.minecraft.network.TcpConnection.func_74450_c(TcpConnection.java:549)
2014-10-25 20:02:13 [INFO] [STDERR] at net.minecraft.network.TcpReaderThread.run(SourceFile:94)
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
Sounds to me like a bandwidth issue. You mentioned having ADSL so this could be it, when you connect over LAN, it still pings a remote server to connect the two computers. What's your up and down speeds?
 

putty mcswing

Member
Jul 29, 2019
7
0
10
Pretty terrible. Australian internet sucks.

Speed test = down 5.5 mbs / up 0.7 mbs

copying data over the network at best is 0.2 - 0.3 mbs

With a downgraded version of Java and running a server (rather than open to Lan) seemed to be better, but still get Timeout Connection Errors
 

putty mcswing

Member
Jul 29, 2019
7
0
10
Both computers have a wireless network card and a wired Ethernet card would I be able to connect ftb using a crossover cable and the wired Ethernet cards? Any advice on how I could set that up?
 

Wagon153

New Member
Jul 29, 2019
3,148
-3
1
In theory it's possible(might have to turn off internet on both computers), but I'm not too sure how to do it.
 

pc_assassin

New Member
Jul 29, 2019
1,809
-2
1
I guess if your really desperate you could put the world on one computer then use it awhile and put it on the second computer and just keep leap frogging it until you complete it...

----------------------------------------------------
Sent From Something That You Won't Care About Using Tapatalk 2
 

putty mcswing

Member
Jul 29, 2019
7
0
10
Looks like Wagon153 was correct. I have fixed this now.

If you are unable to move your adsl router closer to you pcs and your wifi network speeds suck then this is one solution. Also both PC will need a wireless ethernet card and somekind of wired lan card (on board or PCI)

I created a lan using a crossover cable and then specified the IP under LAN Connections > Properties > IPv4 > Properties

PC One had 192.168.0.1 PC Two had 192.168.0.2. Subnet 255.255.255.0, Default Gateway and Default DNS = the IP for PC 2 = 192.168.0.2

Then start the server or Open to Lan and put the IP address into find server of the PC you want to connect to as well as the port. So in my case 192.168.0.2:###### where ###### = the port displayed when you click open for lan.
 
  • Like
Reactions: Wagon153