@dark or chump
how to set aa server online using static ip.?
Printable View
@dark or chump
how to set aa server online using static ip.?
i did wat u said. but the servers wont connect. it just stop. if i use the lan ip of centos it connects.
when is useing ip from http://www.whatismyip.com/
i can start the server ..but i can't join my server
i think everything ok ... except port forward
how can i do it /??
ok here xz3rox.
example static ip: 11.11.11.11
centos ip: 192.168.100.2 in whatismyip.com its 11.11.11.11
then in the ini's file i put the static ip. but when i start the server it work..
I fink u wanted to say when u put your public(static) ip to your server configs, server fails to start :) right? So it's because your centos cant see you public ip (11.11.11.11) and it should be that way :) so to make it visible in your centos u could use ip alias :) (its a function to assign virtual ip addresses to psychical Ethernet device :) )
commands would be:
assuming your public ip is 11.11.11.11 the commands would look like this:Code:ifconfig eth0:0 YOUR_PUBLIC_STATIC_IP
route add -host YOUR_PUBLIC_STATIC_IP dev eth0
ifconfig eth0:0 11.11.11.11
route add -host 11.11.11.11 dev eth0
eth0 is main ethernet device in your centos :)
and know your centos thinks that eth0 has 2 ip one is private 192.168.x.x and other the public one :) u even can test it ifconfig eth0:0
and now your server will assume that your public ip is his private ip :) or something like that.
But ensure u forward all ports needed by client to your centos private ip 192.168.x.x and thats all ;) hope helps..
One more thing ip alias is lost after reboot of centos, so u must run the commands after every centos rr, or make a startup script ;) cheers
wow thnx men u really helped me but my problem now is the server cant conenct to the db. and how do u forward ports if u dont have any router
well yes port must be forwarded to your centos private ip port numbers are:
38121, 38101, 35101, and all your WorldServers ports (by default there is only one WorldSrv_24_01 and the port is 38111)
But sorry i cant say how to forward them, because i don't know what firewalls/routers u use, or how to config them
yes if your windows already with static ip, its a little bit confusing then try to leave the ip in server configs private ones, destroy the ip alias and change only one ip to your public in WorldSrv_24_01.ini this AddrForClient=PUBLIc_IP
about port forwarding in windows don't know, maybe it lets to connect alredy, just disable the firewall on win
Just try. And one more thing, somehow i left all my ip in servers ini files, my private ones, and public clients still could connect ;) so i think it doesn't matter on ip settings, just right port forwarding ;) but not sure 100%
my problem is i cant connect i dont know how to forward port withouth router. hehehe
as i said, maybe your windows firewall is on and it disables requests to specific ports, just try to disable it :)
don`t know what to say anymore :) the best way would be to install centos on separate computer, plug the main cable to it, and from another ethernet device on that computer to windows pc, then set up a masquerade to windows ethernet. and u have a perfect cabal server + router in one :)
or maybe some super duper vmware and windows network configs :/
Sorry mate, can't help :/
ehheehehe thnx .the firewall is disabled. i will try to fix this hehee.
Ok i want to say 1 thing. dark show in post your login and gen files in this post and show in which places we need change ips and in which places we dont need change ips. ok?
And yes. i need change in all ini files those ips to my ip 195.216.178.161(centos ip is 192.168.184.130).