Author Topic: How to up an server public and on.  (Read 1157 times)

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
How to up an server public and on.
« on: June 13, 2009, 09:49:07 am »
I need a little howto  :whistling: because i cant up the sevrer to public, i modified the hosts files in my ubuntu 9.04, and i added an host to no-ip.
my hosts file are this:
192.168.2.100        mynoip.no-ip.biz
localhost                  mynoip.no-ip.biz

I opened the port in TCP mode, i started the sevrer, i refreshed the ip on dns and nothing...

Please help-me.

ThomPhoenix

  • Testers
  • Forum Addict
  • *
  • Posts: 2678
  • A Phoenix, what'd you expect?
    • View Profile
Re: How to up an server public and on.
« Reply #1 on: June 13, 2009, 12:05:22 pm »
Is the server itself ready? (the cli command is "ready").
We're not evil. We're simply amazing.

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Re: How to up an server public and on.
« Reply #2 on: June 13, 2009, 01:49:13 pm »
yes, maps loaded spawn and ready

regards

Pizik

  • Hydlaa Citizen
  • *
  • Posts: 235
    • View Profile
Re: How to up an server public and on.
« Reply #3 on: June 13, 2009, 07:15:23 pm »
PlaneShift uses UDP so opening your TCP ports will not help. You need bidirectional UDP port open.
Proceeding through life like a cat without whiskers, perpetually stuck behind the refrigerator.

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Re: How to up an server public and on.
« Reply #4 on: June 14, 2009, 07:55:39 am »
ok, but when i connect with my no-ip, in my pc has no-ip = localhost, Data/servers.xml and in this to my no-ip, and the game not connect to the server.

regards

Sen

  • Hydlaa Notable
  • *
  • Posts: 746
    • View Profile
Re: How to up an server public and on.
« Reply #5 on: June 14, 2009, 08:07:12 am »
As a detail, your hosts file should better look like
192.168.2.100        mynoip.no-ip.biz
127.0.0.1        localhost

You can enter something like this in your servers.xml of your planeshift client:
<serverlist>
<server name="Fragnetics" ip="laanx.fragnetics.com" port="7777" />
<server name="ezpcusa" ip="planeshift.ezpcusa.com" port="7777" />
<server name="MyOwnServer" ip="192.168.2.100" port="13331" />
</serverlist>

By the way, is your own server marked as "Failed" or is something else the problem?

Sen
.....also a saddle that won't pinch the tail. One day!

Lanarel

  • Testers
  • Hydlaa Notable
  • *
  • Posts: 782
    • View Profile
Re: How to up an server public and on.
« Reply #6 on: June 14, 2009, 08:25:47 am »
Can you connect to your server from a client on the same machine (with as server ip 127.0.0.1 in servers.xml)? If it is that you can connect but others cannot, you may also have to forward the external IP to you local up (the 192 one).

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Re: How to up an server public and on.
« Reply #7 on: June 14, 2009, 11:16:09 am »
yes i can connect to my sevrer with localhost.

regards

Vornne

  • Testers
  • Hydlaa Resident
  • *
  • Posts: 189
    • View Profile
Re: How to up an server public and on.
« Reply #8 on: June 17, 2009, 07:32:13 pm »
I use a DNS aliasing service as well, but have never been able to connect from the same IP as the server; just use localhost for yourself and give out the name to others. In addition I can't connect to the local apache server or anything with it either, never bothered to look up the reason.

Nykolai Raskaniov

  • Hydlaa Resident
  • *
  • Posts: 191
    • View Profile
Re: How to up an server public and on.
« Reply #9 on: June 18, 2009, 09:35:52 am »
It's probably a routing / IP forwarding problem somewhere. Check your router settings, perhaps the defaults block too much traffic (like mine) so you have to explicitly create forwarding and allow rules.
"Skiing combines outdoor fun with knocking down trees with your face."

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Re: How to up an server public and on.
« Reply #10 on: June 23, 2009, 10:24:38 am »
can you explain a bit?

regards

Nykolai Raskaniov

  • Hydlaa Resident
  • *
  • Posts: 191
    • View Profile
Re: How to up an server public and on.
« Reply #11 on: June 30, 2009, 05:07:28 am »
Most of us have a setup like this:

Home PC(s) - Router & Firewall - Internet

The home PC's have internal IP addresses, non routable, like in RFC 1918 (rfc1918) - Address Allocation for Private Internets.

The router box, which in most cases for home use can also act as a hardware firewall (not extremely powerful of course) is the one which gets the external IP address, from the public pool.

If you set up PS on your own PC, and that uses an internal address like 192.168.2.100, you will not be able to allow others to connect to it from the outside without creating a forwarding rule between your PC and the firewall. In other words if your router has an IP address like 80.80.80.80, you would have to create this rule of the router (via a graphical/web interface or directly on it via the firewall rules if you know the syntax) which forwards packets back and forth between 192.168.2.100 and 80.80.80.80 on UDP port 13331 (or whichever your server is set up on). Also, make sure your own PC as well as the router have the UDP port open.

A possible problem might be if you have dynamically assigned IP and it gets changed by the ISP automatically from time to time. I believe DynDNS could help... Be advised though, this is not a service for a server with heavy traffic.

Fair warning: Please make sure you comply with the ABC license, do not use any of the proprietary content in PS to run a public server.
« Last Edit: June 30, 2009, 05:13:08 am by Nykolai Raskaniov »
"Skiing combines outdoor fun with knocking down trees with your face."