WARNING: The forum is now in read-only mode as we will soon be transitioning to different forum software. Feel free to join our Discord server in the meantime.
Barthock
Posts:13
Joined:Wed Dec 19, 2012 3:38 pm
Location:Germany
2 PC's one public ip adress. not possible?

Fri Dec 21, 2012 5:44 pm

Hey there,

me and my friend (sitting in same room, using same internet connection) were just trying to connect to the same server and the second joiner always kicks the first one.

We use the same public ip adress. Is this a known problem and is there any solution?

Barthock

Edith: some server don't show this behavior, maybe a server configuration problem?

User avatar
RobbingHood
Posts:3305
Joined:Mon Dec 17, 2012 8:50 pm

Re: 2 PC's one public ip adress. not possible?

Fri Dec 21, 2012 9:05 pm

Try this:

Create a new shortcut to your .exe(The one you click to start the game).
Navigate to the exe and write the following behind the path:

Code: Select all

-port 10001


So, the final path might be:

Code: Select all

"C:\Program Files\Battlefield Bad Company 2\BFBC2Game.exe" -port 10001


Make sure you placed the quotation marks before and behind the patch, but don't include the port parameter.

Please tell me if it worked
Regards

Barthock
Posts:13
Joined:Wed Dec 19, 2012 3:38 pm
Location:Germany

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 12:49 am

Hey,

thanks for your reply.

Adding the -port parameter at both clients:
same problem. okay makes sense same ip:port configuration.

Adding the -port parameter at one client:
works fine.

This means the server can only handle one ip:port instance.

Now i wonder why i have this problem on my own server, but on other servers this problem doesn't exist.
Is there any possibility that the server uses different ports for clients behind the same ip?

Thanks Barthock

User avatar
Kerrigan
Posts:1614
Joined:Mon Dec 17, 2012 6:15 pm
Location:Your nightmares

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 12:57 am

Barthock wrote:Hey,

thanks for your reply.

Adding the -port parameter at both clients:
same problem. okay makes sense same ip:port configuration.

Adding the -port parameter at one client:
works fine.

This means the server can only handle one ip:port instance.

Now i wonder why i have this problem on my own server, but on other servers this problem doesn't exist.
Is there any possibility that the server uses different ports for clients behind the same ip?

Thanks Barthock


Try to use another port for your server aswell.

Then your both clients and your server would be using a different port.

Barthock
Posts:13
Joined:Wed Dec 19, 2012 3:38 pm
Location:Germany

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 1:14 am

Okay, i will try to change the server port. Is there any recomennded default port i should use?

User avatar
Kerrigan
Posts:1614
Joined:Mon Dec 17, 2012 6:15 pm
Location:Your nightmares

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 1:17 am

I got an own server. The port is set to 19567. Try that.

Barthock
Posts:13
Joined:Wed Dec 19, 2012 3:38 pm
Location:Germany

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 1:28 am

TheShadow wrote:I got an own server. The port is set to 19567. Try that.


My Server is configured to the same port. I tried to change the server port, but then the server doesnt accept connections.

On default port i have the problem.
Changing the -port at the clients works, but i think this is not a good solution...

I think there must be a server-sided solution, because on other servers this problem doesnt exist.

Barthock

User avatar
Kerrigan
Posts:1614
Joined:Mon Dec 17, 2012 6:15 pm
Location:Your nightmares

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 11:33 am

Barthock wrote:
TheShadow wrote:I got an own server. The port is set to 19567. Try that.


My Server is configured to the same port. I tried to change the server port, but then the server doesnt accept connections.

On default port i have the problem.
Changing the -port at the clients works, but i think this is not a good solution...

I think there must be a server-sided solution, because on other servers this problem doesnt exist.

Barthock


Okay.
Since the clients are first sending out data to the master server and your server is receiving data from it in order, you´ll have to make sure, that your firewall or NAT is not blocking those ports (10000,10001,19567)

If you have to forward them, use the TCP/UDP protocol. I dont know exactly whether the server is using the UDP-protocol too, but please open it aswell to prevent any further conflicts.

Barthock
Posts:13
Joined:Wed Dec 19, 2012 3:38 pm
Location:Germany

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 2:08 pm

Hey, thanks for your reply.

I will try some configurations and post the result later. I have to wait a bit. My server is not reachable due to maintanance at the moment.

One question:
Client use port 10000 for handshake to master server?
Or to connect to the game server? Or both?

Servers use in my case "19567" for master server handshake and later for client handshake?

I'm trying to get used to the process ;)

In my case:
ClientOfficialIP:10000 connects to masterserver, recieves the server list.
2ndClientOfficialIP:10000 connects to masterserver, recieves the server list.

Serverlist contains the ServerOfficialIP:19567

ClientOfficialIP:10000 connects to ServerOfficialIP:19567 and etablishes a connection instance to ClientOfficialIP:10000
2ndClientOfficialIP:10000 connects to ServerOfficialIP:19567 and etablishes a connection instance to 2ndClientOfficialIP:10000

ClientOfficialIP and 2ndClientOfficialIP are the same, so the GameServer recieves the data from both clients on the same connection instance. And here is the crash?

Wouldnt it be possible, that the server only uses "19567" for the handshake and then sets another port for further communication?

Barthock
Last edited by Barthock on Sat Dec 22, 2012 2:22 pm, edited 1 time in total.

User avatar
Imposter
Posts:295
Joined:Tue Dec 18, 2012 4:35 pm

Re: 2 PC's one public ip adress. not possible?

Sat Dec 22, 2012 2:12 pm

Barthock wrote:Hey, thanks for your reply.

I will try some configurations and post the result later. I have to wait a bit. My server is not reachable due to maintanance at the moment.

Barthock

The bug seems to happen on some users' computers, when me and my brother do that, it works just fine. Hmm, I will put this in my known bugs and solutions database :D

Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 33 guests