How to desire the IP to the exe file

Keeny

New member
Joined
Feb 3, 2012
Messages
2
hello
Please I need Your help or advise.
I've got a VPS with Windows Serwer 2008 on and a few IP address.
I'm going to start twice the same exe (simple game application - server) from different locations of HDD.
However there is not possibility to choose which port game server use. It is constantly 1808.
So the only possibility is that dwo different exe files will broadcast different IP.
First app (let's call it 1.exe) is starting ok.
2.exe is trying to start the same IP so in its log error is following:
Initialising winsock : Success
Creating socket : Sucess
Binding socket : Error

Please help me to force winserwver to start 1.exe with IP#1, 2.exe with IP#2, ...
thanks in advance
 
You cannot do this, is the application itself that force the port and you can't bind the same port two times.
 
Sorry for maybe stupid question while i'm just amatour but isn't it so that each IP has full range of ports to use?
I thought one app can go on xx.xxx.xxx.xxx:1808 and second one on yy.yyy.yyy.yyy:1808
But if I understand You right way there is only one range of ports to be used for all IPs available.
Is it so?
best regards

P.S. Maybe any other application can redirect port befor go into the net and redirect it back while incom?
 
Well you can use the same port for different IPs.

I mean, you can have 2 web server on the same server with 2 different IPs:

192.168.1.10:80
10.0.0.10:80

It works...
 
Back
Top