last day (14 days later) » 

08:13
0
Q: Why doesn't port forwarding work correctly for me?

chipperyman573First off, my router is a D-Link DIR-655, firmware v2.07. I'm trying to port forward port 25565. My port forward settings are this: However, when I use this open port checker, it claims that I don't have that port open. It looks like this, without the blurred out parts: Why is this? How c...

My firewall has an exception built in for port 25565, so the firewall isn't it. I'm trying to run a program that uses 25565, it's not another machine.
No, the minecraft server is my external IP (xxx.xxx.xxx.154) plus 25565 (so the full address to connect is xxx.xxx.xxx.154:25565). When I typed my external IP into the box, it gave me an error about how it was out of bounds of my LAN address
have you proved whether it's your LAN or windows firewall? you prove it by doing like nmap, from one computer to another's socket(IP:port), it's on the LAN, do it from another machine.
@chipperyman573 try to connect internally first, so not the external 154 address
@barlop If I type localhost or 127.0.0.1 into the address bar, it works. So I know it's not the program not working or something like that. Also, if I chose "open to LAN", I can connect over the LAN menu.
@chipperyman573 that would only test if you have a web server on 127.0.0.1:80 but you want to connect as you would to minecraft, on the port minecraft is on. can you do that internally like 127.0.0.1:6789 (if minecraft is there), and i don't know if you use an address bar to connect to minecraft
It filled it in as 192. blah blah blah automatically, and when I type in my external IP it gives me this error: i.imgur.com/2qTOW.png
08:13
@chipperyman573 you're not listening.. Forget external ip for now. Try to connect from another machine on your lan, using your 192 address and minecraft port number. If -that- works, then try an online port scanner on your minecraft port.
@barlop it won't connect with my 192 address.
@chipperyman573 then it could be that the server isn't actually running on the port, or it could be that the firewall is stopping it. What windows version are you using?
@barlop windows 7, and I just checked the server.properties file, and it says it's running off that port. The server runs with no errors. But besides minecraft, why won't canyouseeme.org or other sites like that say that I have an open port?
@chipperyman573 they only see an open port if a)the server is running b)the firewall is letting it in c)port forwarding is set up. You have to do tests to figure out which isn't working. and i'm more familiar with xp than 7. Open a cmd prompt and run netstat -aon | find "5677" (where you change 5677 to your minecraft port), what comes up?
@barlop this is my firewall exception property: [i.imgur.com/ZtVzE.png](http://i.imgur.com/ZtVzE.png)

Did I do it right? Also, I have my server run, it still says it's closed.
08:13
as I said, you have to do tests, not just rely on what things say
What tests?
netstat -aon | find "5677" (where you change 5677 to your minecraft port), what comes up?
do that in a cmd prompt window
that will show you what servers are listening and filter for that minecraft port
FIND: parameter is not correct.
that's the error.
oh
forgot the last "
Not it says nothing
ok, remove | find "5677"
okay
a huge list popped up
08:15
it will now show a bunch of stuff, look for :5677 (where 5677 is the server port)
under PID?
no
notice the colon
oh
Okay, I get it
there isn't one there.
you need to get minecraft to listen, and it should show up in that.. that's a good test
08:16
k
Okay
So the server is running
How do you know?
but nobody's connected to it
netstat -aon isn't showing it, so it looks like it's not running
In the window \
it's cmd, by the way
it gives warnings
plus, when I connect with localhost or 127.0.0.1
it connects me.
08:18
how are you connecting?
you said you type 127.0.0.1 in the address bar, isn't that just a webpage?
No, I'll show you, hold on
It looks like this: puu.sh/Mp5s
it's part of mc
ok.. let's find out the PID of that program that connects that you showed me a screenshot of
then we'll locate it in netstat when it connects, ok?
that's minecraft.
oh, okay.
08:20
i can see that
Sorry, misunderstood.
open task manager
ctrl shift escape might do it (it did in xp)
Yeah, it's open.
08:21
is there a PID column? (process id)
oh, it's javaw.exe
I've had to stop it before.
the sever's PID is java.exe *32
maybe, i'm not sure, but maybe
it could be that it loads java.exe
but that it is something else
Well, you start minecraft.exe, then when you login with a paid account
it starts javaw.exe
if I stop the server
java.exe *32 goes away
java*.exe may just be something the server uses
well, yeah
08:23
the code for it
can you get a PID column
Right, I'm there already
the code for the server is basically to start a .jar file
@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
"%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
PAUSE
so minecraft.exe runs that to run the server?
no, run.bat runs that
08:25
get the PID column in task manager
what about minecraft?
and these are from the PID column yes?
minecraft.exe
minecraft is 5828
the server is 6064
javaw.exe is 5828
what about minecraft.exe what is it?
Minecraft.exe is stopped when you log in, it starts javaw.exe
minecraft.exe is just a login screen, it starts a .jar file when you login.
08:27
OK , connect to the server via 127.0.0.1
okay, connected
now do netstat -aon | find "5828"
and do netstat -aon | find "6064"
a
TCP 127.0.0.1:54317 127.0.0.1:25565 ESTABLISHED 5828
when I do 6064 it comes up blank
now disconnect the client but leave the server running, can you do that?
so closing the connection, but leaving the server running
08:30
now do
By the way, did you confirm that the machine you're running the Minecraft server on is using private LAN IP address 192.168.0.100?
it doesn't, it uses my external IP
When I try to port forward using that IP
it gives me an error, I'll go get it.
What does that show?
So, this Minecraft machine is not on your LAN?
no, you connect over [external IP]:265525
08:32
Once this is all set up, yes, you'll connect that way.
But internally it should work unless Minecraft configures the server to bind to a particular IP address.
Right, it works if I type localhost or 127.0.0.1
But until this is set up, you need to know the LAN IP address of this machine.
it may well be binding locally,
and so the server isn't running right
but try to close the connection and keep the server running and run that command
you still haven't done that
what command?
Which one?
netstat -aon | find "6064"?
08:34
What is the LAN IP address of this machine that you're running Minecraft on? Not the loopback address, not the external address.
netstat -aon | find "5828"
@barlop that gives me TCP 127.0.0.1:54317 127.0.0.1:25565 ESTABLISHED 5828
do that from the machine with the server now that you disconnected the client
DISCONNECT THE CLIENT
It is, barlop
minecraft isn't even open
then it shouldn't say established
08:34
@Spiff the external IP is 192.168.0.100
it is still connected
I'll try again, bar
okay, now it comes up blank
Nothing at all?
Like the server isn't running?
08:35
just a blank line
i'm saying run the server and close the client
The server is running, the client isn't
chipper, man, how do you know the server is running?
i've been telling you that you have to do tests to find things out
Because I can connect at any tmie.
you can't just make stuff up that you think might be happening without a test
08:36
time*
I can login with localhost at any given time
well, maybe it starts the server every time you connect or something
just not with my external IP and port
Oh, I think it does, actually.
no, wait. It doesn't.
So, in the Minecraft client, when you try to connect to server 192.168.0.100, what happens?
I can connect fine
you can connect fine from another machine?
08:37
I'll try
as long as it's on my network
So another machine on the network can connect to the server?
Yeah, but not a machine off my network. I would guess.
I haven't tested it.
Okay, great. Now is your port mapping on your DIR-655 still set up like this? i.sstatic.net/MFGYh.png
Okay, try your open port check now.
08:41
still closed. I closed the connection from the other computer, should I open it again?
@Spiff any ideas how he can see whether the server is bound to his LAN or bound to 0.0.0.0 ?
@barlop I'm not a Windows guy. I could tell you how to do it in OS X.
What does netstat -aon | find "255565" show?
with the server open?
08:43
@richardhsu There's way too many digits in that port number, no?
Sorry too many 5's XD
25565*
hold on, it won't run...
just a sec, lemme get it to work again.
okay
it shows this:
TCP 0.0.0.0:25565 0.0.0.0:0 LISTENING 3704
TCP [::]:25565 [::]:0 LISTENING 3704
@Spiff in windows there's netstat, and it seems that even when something is bound to 0.0.0.0, if you connect from 127.0.0.1 then netstat shows 127.0.0.1 and you wouldn't know it was bound to 0.0.0.0 i.e. you can only see how the server is bound by looking when the server is running and the client isn't.
that's good chipper,
it means the server is running and the client isn't
127.0.0.1 is built into minecraft to play any local game
like localhost
08:45
Okay, I know this is silly but have you tried restarting your router and resetting up the port forwarding? Sometimes routers can get bogged down and port forwarding settings actually don't work properly.
Multiple times, rick
rich*
Okay just checking :)
And resetting it to factory defults
re-installing its firmware
Power cycling?
etc
Yes, about 10 times.
08:46
Okay.
@chipperyman573 When you did the open port check for me just now, was the Minecraft server software running?
How did you make your firewall rules again?
chipper, did you say you can connect from another machine, or not?
@Spiff No
I can
@richardhsu I went into windows firewall
@chipperyman573 Oops, okay. Now that you've got the Minecraft server software running again, can you redo the open port check?
08:47
so with or without the client?
chipper, When you connect from another machine, do netstat -aon | find ":25" and see if it says Established. (that just makes sure 'cos all the messing around with localhost and it was running a different server!)
The client doesn't need to be running. I just want you to use that external website tool to check that [external IP address]:25565 is open while you've got the Minecraft server software running
okay, I'll go do that, bar.
spiff, it's still closed.
i.imgur.com/ZtVzE.png I see that, but it's only showing local port and remote port. Is it incoming or outgoing rule? And what are the scope values?
@barop it's established
@rich incoming.
I'll check the scope values.
scope values.
08:53
@chipperyman573 ok disconnect the other machine from it now.. good that it was able to establish. leave the server running still
have you ever got your router to do any port forwarding at all?
I've never tried before
never tried for any server other than this you're trying now?
08:56
Nope, I've used hamachi in the past, but I can't anymore due to updates
You are sure the server is running on a machine that's 192.168.0.100?
That's how you're connect with the other client on the LAN correct?
This is very perplexing o.o
08:58
yeah, I agree.
But the main question is why port forwarding doesn't work, if I can figure that out the server will work
Correct.
Do you have a DMZ setup on the router?
Huh. Guys, this is interesting. I've found two places online talking about setting up the D-Link DIR-655 port forwarding for Minecraft, and both seem to say not to put anything in the IP address field of the port forwarding rules of the DIR-655.
How does the router know which machine to send it to?
@richardhsu I unchecked that cause the dlink lady told me too
@spiff I'll try removing it
@richardhsu I agree, it doesn't make any sense.
09:01
Good, yeah DMZs screw up port forwarding for most users.
@chipperyman573 Also check to see if you have any "Virtual Servers" enabled.
Error I get when I use a blank address: puu.sh/Mps1
chipper: The Dlink lady may have been doing a test if she told you to uncheck something, it doesn't necessarily mean permamently uncheck it
Actually
I restored to factory defults
so it'll be checked again
Turning off DMZ makes sense here, unless 192.168.0.100 is your DMZ.
09:02
@spiff no virtual servers.
if you restored to defaults then you need to set up teh port forwarding all over again, not just check or uncheck a box
I did
I restored it before I made the post on superuser
so the port forwarding and stuff is all setup
Can you try creating a new rule and don't fill out IP address at all to begin with?
I'll try
No, this is the blank rule thing: puu.sh/Mptu
BTW guys, D-Link has a DIR-655 web UI emulator online so you can see the same kind of thing chippery is seeing.
09:04
Thanks, that's helpful, these screenshots online are so crappy XD
@chipperyman573 i suggest calling dlink too
I did
the lady knew next to nothing.
So I called again
neither did the second guy I got
well now you know where the server is
and that it's running
and you know you can connect from another machine
you know next to nothing as well so it's not easy for them
on my network
yeah
I know
Next to nothing too
But getting help from someone who doesn't know anything won't help.
anything about my issue
Well, they may know their router inside out
09:07
They said they didn't know why it was doing what it was doing, and just told me to do basic stuff like power cycle, restore to factory defaults, etc.
if you have time you could try setting up other servers
as in, mc servers?
not necessarily..
@chipperyman573 Do you have any "Application Rules" (trigger ports) set on your DIR-655?
I'll check
nope
the lady told me to set it up there
like this
(getting image)
09:09
@barlop I was thinking the same thing. Set up a web server on port 80 (or 8080) and see if that works.
@chipperyman573 For giggles, can you go to your DIR-655's "Firewall Settings" tab and disable the SPI (Stateful Packet Inspection firewall)? Then re-run the port check (with the port forwarding rule in place, and the minecraft server running).
alright, trying that right now..
Oh, and for the NAT Endpoint filtering, put both at "Endpoint Independent".
okay, my router will need to restart, so it'll take me about 2 minutes before I can respond again
09:13
See you on the other side.
I don't think I can add anything to this discussion so I found these two youtube videos with same router for a user on Windows 7. Maybe that might help, he does seem to imply changing some other settings so could give it a shot. (I know he's probably offline since he restarted router so if he doesn't get this it'd be great to forward it to him)
http://www.youtube.com/watch?v=RgryvL6vB70
http://www.youtube.com/watch?v=WSAfFhduSaY
Luckily, Stack Exchange chats are persistent, so he'll see that when he gets back.
Nice that's awesome alright I'm out. Going to sleep. Good luck!
and I'm back
Alright, thanks, I'll look over that tomorrow.
See you guys later (?)
I'm still here.
Did you change that SPI setting, and the NAT endpoint settings?
09:20
Yeah
Is your Minecraft server running? Did you try the open port check?
yeah, it's still closed.
with and without client
There's a program
called port forwarding wizard
that works for some reason
problem is, it costs $29.99
(I got the trial)
So wait. You used the trial of this tool, and it successfully set up port forwarding on your DIR-655? So now the open port check works?
No, it does something else
When I checked the 192.168.0.1 site
it wasn't in there
Yeah, it makes it work though
But the trial lasts 15 minutes
and I need it for at least 2 weeks
Oh, and it only works while it's open
so after 15 minutes, when it closes, it stops working
Hey, just for kicks, can you un-check that port forwarding rule (on your DIR-655) and create a Virtual Server rule instead? They should be pretty much the same thing, but Virtual Server only lets you put in a single port (which is all you need, I'm pretty sure), whereas Port Forwarding lets you set port ranges.
09:26
okay
With my external IP?
No, where it's asking for an IP, it's asking for the 192.168.0.100 address (private LAN address of your server).
okay
I needa reboot again.
See you soon.
I'm watching the YouTubes that @richardhsu found and linked to, but whoever created those videos doesn't know what he's talking about. He thinks "PPPoE Pass Thru" matters. I'm not sure I'd follow his advice.
okay, I won't
oh, side note
I can connect to my game using localhost even when my internet's off.
Yes. Localhost points to 127.0.0.1, which is your machine's "loopback" address. It's an address your machine can use to talk to itself, even if it's not connected to any network at all.
09:32
Oh
that's cool
So did your router reboot? Is the Virtual Server entry in place, and checked? Is the Port Forwarding entry unchecked? Is Minecraft server running? Does the open port check work?
Yeah, it's checked, and the port is...
UNBLOCKED
you're a jenius
genius*
Holy shit.
thanks so much
I can't believe that the Port Forwarding page didn't work for that, but the Virtual Servers thing did. Sounds like D-Link has a bug.
09:35
Yeah, one of many, harharhar
alright, see you around (?), thanks again!
@chipperyman573 By the way, you should probably turn the SPI back on, and it set the NAT Endpoint filtering to their defaults. Their defaults are more secure than what I had you set them to, and now that we found that the "Port Forwarding" page was busted, I don't think SPI or NAT Endpoint filtering were part of the problem.
@barlop you still here?

last day (14 days later) »