Hard Light Productions Forums

General FreeSpace => Multiplayer => Topic started by: MC_Kejml on October 13, 2007, 03:44:43 pm

Title: Error :(
Post by: MC_Kejml on October 13, 2007, 03:44:43 pm
Hello, my friend can't connect. He has a Wi-fi, and in the launcher, he had chosen the T1/ISDN/ etc option, and Direct connect one.
He registered in PXO and everything else like a ordinary player, but it didnt worked. When he clicked on the entry door, there is that ''connection failed'' and this is it.  :shaking:

I am copying his multi. dat file here:

FreeSpace Multi Log - Opened Sat, Oct 13, 2007  at 10:10PM
----
----
----


10/13 22:10:53~   psnet_init() detected lan connection
10/13 22:10:53~   psnet_get_ip() reports IP : 0.0.0.0

10/13 22:10:53~   Receive buffer set to 4096

10/13 22:10:53~   Send buffer set to 4096

10/13 22:10:53~   Error on IPX startup 10047

10/13 22:10:53~   Network
10/13 22:10:53~   Found no RAS connections
10/13 22:11:02~   In psnet_use_protocol()
10/13 22:11:02~   Psnet : TCP broadcast

10/13 22:11:02~   Psnet using - NET_TCP

10/13 22:11:02~   multi_level_init()
10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1

10/13 22:11:02~   Invalid socket id passed to nw_NewCloseSocket() -- -1



----
----
----
FreeSpace Multi Log - Closing on Sat, Oct 13, 2007  at 10:11PM

It would be great if somebody helps.
Thanks in advance :)
Title: Re: Error :(
Post by: jr2 on October 13, 2007, 04:52:44 pm
Where did he get his FS Open?
Title: Re: Error :(
Post by: karajorma on October 13, 2007, 05:42:35 pm
http://www.game-warden.com/forum/showthread.php?t=267

Pay particular attention to step 3.
Title: Re: Error :(
Post by: MC_Kejml on October 14, 2007, 03:06:55 am
karajorma: He has the code written in the file, there is no problem with that..
Title: Re: Error :(
Post by: jr2 on October 14, 2007, 07:21:29 am
Does he have his multi settings set like this?

(http://i16.tinypic.com/4uxjng3.jpg)
Title: Re: Error :(
Post by: karajorma on October 14, 2007, 07:25:07 am
karajorma: He has the code written in the file, there is no problem with that..

BOTH files?

The most common cause of the problem is that while the one in FS2\Data is correct the one in fs2\mediavps\data isn't (or doesn't exist) and overrides it.
Title: Re: Error :(
Post by: Vidmaster on October 15, 2007, 07:41:23 am
i currently cannot play FS2 multiplayer too, but every TC works !!!

files are correct, no typing errors in the passwort, options are correct too, I am out of ideas...
Title: Re: Error :(
Post by: jr2 on October 15, 2007, 03:10:59 pm
Hmm.  Is your firewall allowing the fs2_open .exe?
Title: Re: Error :(
Post by: Vidmaster on October 16, 2007, 05:20:36 am
just use the standart windows firewall and yes, it allows FS_open.exe  . I also tried to connect with the firewall deactivated, still no connection.
Title: Re: Error :(
Post by: jr2 on October 16, 2007, 08:49:15 am
Here:
http://www.hard-light.net/forums/index.php/topic,49793.0.html

In the second post, download the UDP port tester.  Tell it to test port 7808.  What does it say?
Title: Re: Error :(
Post by: Vidmaster on October 16, 2007, 09:04:26 am
it fails ! but why the heck does it fail ?  :mad: :mad: :mad: it even fails when I disable the firewall :no:
execptions in the firewall options say C:\Games\FreeSpace2\fs2_open_3_6_9.exe is allowed !
there are also two entries for 7808 in that list, one for TCP and one for UDP ?

what did I done wrong ?  :confused:
Title: Re: Error :(
Post by: jr2 on October 16, 2007, 10:47:35 am
www.portforward.com -> forward port 7808 UDP in your router setup.  You may need to set up a static IP, Port Forward has tutorials on that, too.

What is your network setup like?  eg, do you have :

Cable TV line -> Cable Modem -> Router -> Single Computer?
Cable TV line -> Cable Modem -> Router -> Multiple Computers?  (better get a static IP from your Router if this is the case *not* the same as a static IP from your ISP company)
Cable TV line -> Cable Modem -> Single Computer?
DSL line -> DSL Modem/Router -> Single Computer?
What?  XD
Title: Re: Error :(
Post by: Vidmaster on October 16, 2007, 02:19:46 pm
DSL line -> DSL Modem/Router -> Single Computer?

that one

www.portforward.com -> forward port 7808 UDP in your router setup.  You may need to set up a static IP, Port Forward has tutorials on that, too.

that side is a monster of information. I am not sure if I managed to open the ports, since pftwin still says they are closed. At least, Freespace does something different now. Instead of giving me a "connection failed" about 20 secs after I try to log on, it gives it to me right away.

why the hell do the TCs work proplerly ?
Title: Re: Error :(
Post by: karajorma on October 16, 2007, 03:41:09 pm
You're wasting your time checking port 7808 unless you intend to host games (and even then your problems will appear only once you can log on). FS2NetD used port 12000 TCP for the log on (for FS2 at least. BtRL uses 12001 and WCS uses 12003). Which TC can you log on with? TBP? WCS? (I'd expect WCS to crash since they said they hadn't done the interface art).

If TBP will log on I'd be hugely surprised as I don't think they included a fs2open_pxo.cfg file.

And what does it actually say in both the ones you have in your Freespace2\Data and Freespace2\mediavps\Data folders?
Title: Re: Error :(
Post by: jr2 on October 16, 2007, 08:27:23 pm
@karajorma:  Just so I can understand this:

Where the heck does FS2 *recieve* connections from when you're not hosting?  You can't convince me that it's all a one-way information flow to the host.  The client has to recieve, too... now I'm sure there's an explanation, and I can't wait to hear it.. this has been a bit confusing for me for awhile.  :confused:
Title: Re: Error :(
Post by: Turey on October 16, 2007, 11:06:13 pm
@karajorma:  Just so I can understand this:

Where the heck does FS2 *recieve* connections from when you're not hosting?  You can't convince me that it's all a one-way information flow to the host.  The client has to recieve, too... now I'm sure there's an explanation, and I can't wait to hear it.. this has been a bit confusing for me for awhile.  :confused:

All connections are initiated by the client. Once a connection is established, data can flow in both directions. The problem is creating the connection. The receiver of the connection attempt must have their ports open, or the connection can't be created.
Title: Re: Error :(
Post by: jr2 on October 17, 2007, 12:53:20 am
So, the outgoing port on the client is open because the client initiated it, and once it is established, it just stays open; the problem is the host must have the port open or it won't even recognize the attempt.  Correct?
Title: Re: Error :(
Post by: karajorma on October 17, 2007, 03:00:50 am
The problem is not your firewall (as most people assume) but another feature of the router called NAT (Network Address Translation). What happens is that when you set up your router you let it have the public IP address. and your PC takes its own IP address (usually from the 192.168.x.x range).

When you want to connect to a computer over the internet you send the packet to your router with the IP Address of your machine and the port you sent it from. The router then replaces your IP address with the public IP address it holds. It then also changes the port number as well. It notes down this change of IP address and port number internally. So if it changes the port from 7808 to 13521 then when it receives a packet from the internet which is going to port 13521 it knows that the packet is actually meant to go to your PC on port 7808.

That works fine for connections like the one to FS2NetD since your PC initiates the connection. It also works if you try to connect to someone's game because it is your computer that initiates contact with the game server so when a reply comes from the server with a destination port of 13521 your router knows exactly what to do with it.

The problem comes with the server. you start up your game, connect to FS2NetD which advertises your IP address to anyone else who wants to play. A client decides to connect. He knows your IP address and the destination port is 7808 (or whatever you set force local port to if you were silly enough to fiddle with that). The packet reaches your router. It has the IP address of the router and port 7808 as the destination port. The router thinks "What the **** am I supposed to do with this!?" because it has no way of knowing which PC on your network the packet is meant to go to. So the router discards the packet.

If you've been following this you can probably see what port forwarding does now. It tells the router anything that arrives at port 7808 is for my PC. So now it knows where to send those packets.


I've simplified what's going on but that should show you why you need to port forward if you're hosting but not to play games. It's all about who initiates the contact.
Title: Re: Error :(
Post by: jr2 on October 17, 2007, 03:37:58 am
Got it.  :D  Thanks!
Title: Re: Error :(
Post by: Vidmaster on October 17, 2007, 08:51:22 am
I can log on with WCS and BtrL (TBP not, of course, since there is no file), but not with FS2. You are right with the hosting, my games cannot be seen on the server because of that frakking port thing. But to log in should be possible for FS2, BUT IT ISNT!!!

the files in the mediavps and data folders both say:

fs2netd.game-warden.com
12000

like in your faq.
Title: Re: Error :(
Post by: karajorma on October 17, 2007, 12:45:00 pm
Pick one of those two mods and change their port to 12000. That will at least prove that the problem is definitely the install itself and not some other weird problem.

Which mod are you running? Try it with no mods.
Title: Re: Error :(
Post by: Vidmaster on October 17, 2007, 12:59:37 pm
FS2 no mods gives me a "connection failed" right after trying to log on
FS2 with mediavps gives me a "connection failed some time after trying to log on

took BtrL and changed the number to 12000. I was able to log on (of course got the hacked tables and so on), so it seems like the install is buggy.
I used Shivans1.9c installer and the files and .exe s seem to be correct.
Title: Re: Error :(
Post by: karajorma on October 17, 2007, 01:52:44 pm
What happens if you copy the BtRL config back into your FS2 folder?

Cause judging from the first part of that I'd say that the game isn't finding either config file but when you run with the media VPs it would use the one in mv_core (which is wrong but it would take time for the game to prove that).
Title: Re: Error :(
Post by: jr2 on October 17, 2007, 09:18:55 pm
Hmm... change them to:

64.92.160.250
12000

(64.92.160.250 is the IP address for fs2netd.game-warden.com)

See if that changes anything.
Title: Re: Error :(
Post by: Vidmaster on October 18, 2007, 05:18:25 am
okay, copying from BtrL didn't work, but after I changed to the IP like jr2 said, it logged in nicely. Thx  :) :nod: :yes:

I checked mv_core.vp (never checked before, I though copying a config file into mediavps/data would override) it says:

67.10.64.55
12000

is this the old ip ?
Title: Re: Error :(
Post by: karajorma on October 18, 2007, 05:21:24 am
very strange. Seems like a DNS error of some sort. Are you posting from the same machine that you play on?
Title: Re: Error :(
Post by: Vidmaster on October 18, 2007, 07:21:40 am
yep
Title: Re: Error :(
Post by: jr2 on October 18, 2007, 07:25:03 am
What happens if you open a command prompt (start > run, type cmd , press enter), and type in:
Code: [Select]
ping fs2netd.game-warden.com and press the enter key?  I don't expect the ping to work, but what does it say about the host?  Specifically, you should be getting:
Code: [Select]
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\jr2>ping fs2netd.game-warden.com

Pinging fs2netd.game-warden.com [64.92.160.250] with 32 bytes of data:

Destination host unreachable.
Destination host unreachable.
Destination host unreachable.
Destination host unreachable.

Ping statistics for 64.92.160.250:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

C:\Documents and Settings\jr2>

If it won't return the [64.92.160.250], then there is a problem with your DNS like karajorma said.  Try typing in ipconfig /flushdns and hitting enter, then pinging again.
Title: Re: Error :(
Post by: Vidmaster on October 18, 2007, 09:19:56 am
it gives me

C:\Dokumente und Einstellungen\Elias.PC_VON_ELIAS>ping fs2netd.game-warden.com

Ping fs2netd.game-warden.com [64.92.160.250] mit 32 Bytes Daten:

Antwort von 64.92.160.250: Bytes=32 Zeit=258ms TTL=53
Antwort von 64.92.160.250: Bytes=32 Zeit=257ms TTL=53
Antwort von 64.92.160.250: Bytes=32 Zeit=271ms TTL=53
Antwort von 64.92.160.250: Bytes=32 Zeit=223ms TTL=53

Ping-Statistik für 64.92.160.250:
    Pakete: Gesendet = 4, Empfangen = 4, Verloren = 0 (0% Verlust),
Ca. Zeitangaben in Millisek.:
    Minimum = 223ms, Maximum = 271ms, Mittelwert = 252ms

C:\Dokumente und Einstellungen\Elias.PC_VON_ELIAS>


so there is nothing wrong with the DSL.
Title: Re: Error :(
Post by: karajorma on October 18, 2007, 12:47:09 pm
Forgot to mention that the config file in the VPs is pointing to the old address. That's the only reason why you need a config file in the mediavps folder. If it weren't there the game could simply use the one in the Data folder for everything.
Title: Re: Error :(
Post by: Pyhrexian_Infiltrator on October 30, 2007, 04:56:11 am
errors.. by the way:

i have really big PROBLEM, i want to play Freespace2 in the internet, but i need an account...  T_T

but the site for creating a account has a big error, it doesnt work...

???What can I do ????


ps: i have the original freespace2 game, with cd and all...

thx for every help
Title: Re: Error :(
Post by: karajorma on October 30, 2007, 06:09:30 am
What error does it give you?
Title: Re: Error :(
Post by: Vidmaster on October 30, 2007, 10:19:42 am
are you using FS2 Open ?
Title: Re: Error :(
Post by: jr2 on October 30, 2007, 11:11:06 am
Cross-linked, his other post and our answers are here (http://www.hard-light.net/forums/index.php/topic,49949.msg1016105.html#msg1016105).
Title: Re: Error :(
Post by: karajorma on October 30, 2007, 04:11:23 pm
Locked in order to discourage further crossposting.