Login Register






The stories and information posted here are artistic works of fiction and falsehood. Only a fool would take anything posted here as fact.
Thread Rating:
  • 0 Vote(s) - 0 Average
Thread Closed 


Port forwarding problems filter_list
Author
Message
Port forwarding problems #1
So I've managed to accomplish quite a bit today. So I decided to play around and see what I can do with my UbuntuServer. I decided I'm going to use this to build maps/spawns and then upload them to my actual server.

What I'm using:
Windows 7 & Ubuntu Server

I am using VirtualBox VM on a bridged network connection for the virtualization.

I changed the dhcp ip to a static one. On my router it's x.x.x.19 is what I changed it to.

Next I go into my router settings and port forward the port (22222) for this example... to the ip x.x.x.19:22222. Show when I start the server and try to login using my standard mc client I get this error in the server:
(/x.x.x.31:##### lost connection) The # are always random numbers...

And on my minecraft client it says "can't connect to server."
I figure this has to be a port forwarding problem. Maybe I'm wrong. Anyone offer any insite? Or reading/suggestions on what I should do?
TemplarCraft! <--- Click here for minecraft!


RE: Port forwarding problems #2
This is what I get when I don't wait for it to ping and I just simply try to connect.
http://gyazo.com/79f9d3931a763d287369d8b592ae282c


I can't even use putty to ssh into the ubuntu server.
TemplarCraft! <--- Click here for minecraft!


RE: Port forwarding problems #3
What about iptables? did you add a rule? Did you check the ports with netstat or scanned the server using nmap? also you can monitor the activities on your server using wireshark/tshark or similar scanners (snort for example)... using wireshark with promiscuous mode will help you to see if the port is actually forwarded from the router side.

Also ... you are using VMare to host a server, guest is ubuntu and host is Windows, is that correct?

Did you turn off networking/network-manager or any network managers that ubuntu uses (I don't know which one it uses)...

Peace
[Image: wvBFmA5.png]


RE: Port forwarding problems #4
(08-05-2014, 09:26 PM)Ligeti Wrote: What about iptables? did you add a rule? Did you check the ports with netstat or scanned the server using nmap? also you can monitor the activities on your server using wireshark/tshark or similar scanners (snort for example)... using wireshark with promiscuous mode will help you to see if the port is actually forwarded from the router side.

Also ... you are using VMare to host a server, guest is ubuntu and host is Windows, is that correct?

Did you turn off networking/network-manager or any network managers that ubuntu uses (I don't know which one it uses)...

Peace



I've tried the IPTABLES but then I shut the server down. Should I do the iptables again? This is what my server shows when I refresh my server list on my minecraft client.
http://gyazo.com/035d8b4e5a7ae3d4ecf986fcf8d75fec
TemplarCraft! <--- Click here for minecraft!


RE: Port forwarding problems #5
Just to be on the safe side... try to flush the tables and try again, if it works then "we" can consider this path to solve the issue... please let me know!

"Lost connection" ... so the connection was actually established? hmmm... !

Peace
[Image: wvBFmA5.png]


RE: Port forwarding problems #6
I think the problem is that the server is listening to the loopback interface instead of the bridged interface. How does one fix a problem like this.
TemplarCraft! <--- Click here for minecraft!


RE: Port forwarding problems #7
Scan the ports to see if it is opened or closed!

AND if that's true (what you said)... then you should configure the server to listen the LAN IP.. which I believe it is x.x.x.19

I used to play Minetest (free and opensource clone of minecraft), it was easy to setup so I believe that Mincraft is also easy to configure!

From what I see here: http://www.noip.com/support/knowledgebas...ith-no-ip/

The configuration is a piece of cake!

Peace
[Image: wvBFmA5.png]


RE: Port forwarding problems #8
(08-05-2014, 09:53 PM)Ligeti Wrote: Scan the ports to see if it is opened or closed!

AND if that's true (what you said)... then you should configure the server to listen the LAN IP.. which I believe it is x.x.x.19

I used to play Minetest (free and opensource clone of minecraft), it was easy to setup so I believe that Mincraft is also easy to configure!

From what I see here: http://www.noip.com/support/knowledgebas...ith-no-ip/

The configuration is a piece of cake!

Peace

I run a minecraft server already, was going to use this as a test environment before actually uploading. IDK what to do at this point. I can ssh/putty into the ubuntu server and start the server but when I connect it fudges up.
TemplarCraft! <--- Click here for minecraft!


RE: Port forwarding problems #9
On my network I set the IP of the ubuntu server to 192.168.254.19. My laptop which the vm is running on is IP 192.168.254.31. The server boots up and runs fine and with the errors I'm getting I do believe it has to be a problem with something that allows the client to connect to the server. In the server list I added the server with IP 192.168.254.19:25565. I really hope someone knows how to fix this.
TemplarCraft! <--- Click here for minecraft!


RE: Port forwarding problems #10
(08-05-2014, 10:03 PM)Templar.Clown Wrote: I can ssh/putty into the ubuntu server and start the server but when I connect it fudges up.

That's why you should use nmap to scan the ports or wireshark to diagnose the traffic!

If you think it is a server issue then check the configuration of your server (which I think you already did).

If it is a router issue, then turn the machine into DMZ (in the router) and check the firewall configuration again with "iptables -vnL --line-numbers" and make sure that RELATED and ESTABLISHED are accepted (in the INPUT table).

If you want to test fast and dirty flush the tables "iptables -F"

That's all I can help you with mate... I am ashamed and sorry that I can't do more, and for that I kindly ask for forgiveness!

Peace Smile
[Image: wvBFmA5.png]








Users browsing this thread: 1 Guest(s)