Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have router, static ip and when I start Minecraft server on Windows, anyone can connect to it, but when I start server on Linux, only players from my local network can connect. And other players can connect when I disable firewall on router. I don't understand why I got this router's behavior on Linux. What to do with this? Did anyone had this problem?

Update. My router is TL-WR740N

share|improve this question
add comment

migrated from stackoverflow.com Aug 24 '12 at 8:25

This question came from our site for professional and enthusiast programmers.

1 Answer

Do you have Windows and Linux as dual boot on the same PC? In such case everything should work fine as you would have the same IP address assigned to Windows and Linux. If you have two separate PCs than each time you change the computer on which you start the server you need to adjust the port forwarding rule on your router to point to correct IP address.

Main Questions:

  1. Are your Windows and Linux machines physically separate?
  2. Do you have a dualboot on a single machine to switch between the operating systems?
  3. Do you have a port forwarding rule on your router for particular port-to-ip address?
share|improve this answer
    
Yes, I have dual boot on same PC and in each OS I have the same IP address. And, I have port forwarding on router. –  kemmotar Aug 24 '12 at 20:44
    
tell your friend to give you his public ip address. lets say its 90.10.10.10. Boot up your Linux and start terminal. Type in tcpdump src 90.10.10.10 and ask your friend to try to connect to your server. Let us know if some connection have shown in the terminal window. If no then the problem is on your router. If yes then maybe Minecraft server on Linux is listening on different port then on Windows... –  mnmnc Aug 24 '12 at 21:04
    
After I did this I got tcpdump: no suitable device found. And Minecraft listen the same port 25565. –  kemmotar Sep 8 '12 at 20:45
    
you do not have a network card installed in linux or it was not recognized or the interface is down. try ifconfig eth0 up –  mnmnc Sep 10 '12 at 23:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.