Page 1 of 1

Server?

PostPosted: Tue Apr 28, 2015 14:29
by strider
I have a MacBook Air, and would like to run a server, for testing. Here is what I have done:

Created port forwarding from the router to my computer.
Created a world to use as the server.
Created an instance of a server, using the server tab in the main menu. (Server>Public>Enable Damage>correct port>correct world)
The server starts, no problem
I open a new instance of minetest with
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
open -n -a "minetest"
.
From that instance, I type in 127.0.0.1 as the IP, and the port (30000) as the port. I connect fine, locally.
I can not connect using my public IP. What should I do? Does this mean the port forwarding is set up wrong?
Thanks,
strider

Re: Server?

PostPosted: Tue Apr 28, 2015 18:40
by lightonflux
You could scan for open ports at your public ip. I am pretty sure OSX has an app for that but i don't know how to use them.

So my tip is that you use an online service like http://canyouseeme.org/ or ask someone of the community to scan your ip with nmap.

Re: Server?

PostPosted: Tue Apr 28, 2015 18:42
by Calinou
You can't connect to your own public IP, only people outside of your network can do so.

Re: Server?

PostPosted: Tue Apr 28, 2015 18:43
by lightonflux
Calinou wrote:You can't connect to your own public IP, only people outside of your network can do so.



It works with other services (ssh), why shouldn't it be possible with MT?

Re: Server?

PostPosted: Tue Apr 28, 2015 19:27
by prestidigitator
Do you have a firewall setup? If so, and if you haven't opened the port, it might very well be allowing connections from the local host but disallowing connections from outside. Can you try connecting to it from another system on your LAN, to rule out a problem with the ISP/router?

Re: Server?

PostPosted: Tue Apr 28, 2015 19:32
by prestidigitator
Calinou wrote:You can't connect to your own public IP, only people outside of your network can do so.

That's not true generally. Most ISP routers will be happy to send the packets back your way. I can certainly ping my external IP address, and SSH to it through the port forwarding. It DOES have to go through external routing, though, so the packets are bouncing out and back in and the behavior may depend on what the ISP has running and how your router deals with packets with the same source and destination addresses (since if you're using NAT—most people are—the outgoing packet will have the external IP address as the source address).