Client connection

Joined
May 17, 2008
Messages
941
Reaction score
26
Hello everyone,
I'm trying to log in my server with the client that gzuz released.
I changed the ip in the ptreg to 127.0.0.1 but looks like the packets were sent to a diffrent ip.
ללא שם - Client connection - RaGEZONE Forums
The result is of course unable to connect.
Any idea where do I change that ip?

Thanks.

edit:

I found 2 strings of the destination ip on the client "211.115.86.66", gzuz said nothing about those values so they are ment to be changed?changing them indeed changed the destination ip but the result is still the same, unable to connect.
 
Last edited:
Sorry for that.
Here is a picture that describes my server configuration, and the result is unable to connect.
I didn't work for a while with pt stuff, did I forget something?that's very wierd.

ללא שם - Client connection - RaGEZONE Forums
 
I already tried.
I tried all kind of client and server exe's from the forum and all kind of packs, still same result!
It's wierd because I used to run servers on this computer, I guess something is wrong in the sql since I installed and removed few times diffrent types of sql versions.
From here everything looks fine, I can connect normally and no errors poped out.
What kind of tests can I do to be sure that the server is communicating with the sql server without errors?
 
Last edited:
I would monitor what IP it does try to open a connection to, and then search for that in it's files.
 
No... ignore strings in the client... there are lots of IP strings in most clients which are completely irrelevant. What does the port scanner say PT is trying to open. :wink:
 
I am sorry but looks like there's been a mistake, I thought I worked with reaverpt client but I didn't.
Anyway reaverpt client is looking for the ip from the ptreg as it should be.
The problem is still the same anyway, unable to connect.

ללא שם - Client connection - RaGEZONE Forums
 
Last edited:
Ohshhhhh....!

There is something very wrong with your networking if 127.0.0.1 resolves to that domain name. That is your WAN DNS (as allocated to your modem by your ISP ... you may want to take it down, since that DNS resolves to your IP :/:) not to localhost.

You will not get a connection from your IP because your firewall (router / modem) will block it without port forwarding, and you should never port forward connections to localhost. (should not be possible, if it where ... what would that mean? It has no meaning in that context... it's just nonsensical)

I don't understand how you managed this. It breaks several standards for TCP/IP communication. If any equipment allowed you to resolve a reverse domain name lookup from 127.0.0.1 to the external domain name of your router, it is seriously bugged!
 
Last edited:
Ohshhhhh....!
There is something very wrong with your networking if 127.0.0.1 resolves to that domain name.
81.218.161.218 resolves to that domain name not 127.0.0.1, i changed all the ip's to 81.218.161.218

And about the port forwarding, it always was vague to me (I said it correctly?) and now it's much more.
"you should never port forward connections to localhost.", so I need to change the server ip adress from 10.0.0.1 to my wan ip?

edit:
I tried to change it but: ללא שם - Client connection - RaGEZONE Forums

btw I have 2 links that handles port forwarding so here is another screen shot of the other page called port triggering:
ללא שם - Client connection - RaGEZONE Forums
It always been that way, there is nothing to test again I just wanted you to be aware of this page.
 
Last edited:
Okay... so you want your client to connect to your modem. That's not so bad then. Only you said earlier that you set your server on 127.0.0.1. (confused me very much)

Switching from localhost to modem is a major change to the server. (changing from LAN to WAN is quite a change)

So you need to change servers hotuk.ini, system registry and forward port 10009 to ... whatever the statically allocated (or reserved) IP for your server PC is.

What do I mean "statically allocated (or reserved) IP for my server"? Well, servers should be either outside the IP range allocated by your DHCP server, but within the hostmask for your local subnet and have (at least) their IP allocated manually in the TCP/IP configuration of their network connection, (if not bypass DHCP entirely and configure all network settings manually ... this would provide fail-over resilience should the DHCP server service fail) or they should have an IP "reserved" for use by their MAC only in the DHCP server configuration.

Woa! WTF!?
Here's a basic run down on how DHCP works. If you look at your network connection (on a Windows PC) open the properties of (what is probably called) "Local Area Connection" (but it could, theoretically be called anything, 'coz that's just a default) then show the properties of your "Internet Protocol TCP/IP Version 4 (TCP/IPv4)" protocol, you can see radio buttons for "Obtain and IP address automatically" or "Use the following IP address:" with a group of controls below and "Obtain DNS server address automatically" or "Use the following DNS server addresses:" with a group of controls below that.

Normally, they are both set to automatic, which means this network connection will broadcast to a DHCP server in order to get these details during the "driver" startup. You can't use the device (network connection) until it has received a suitable response from the DHCP server and filled in the details which are currently greyed out. (I'm a little fuzzy on how it actually does that without having an IP to send from or to, but I can think of several ways it may and it doesn't really matter which it uses)

Before DHCP servers popularly existed (which isn't all that long ago) we used to have to manually fill in all the details on that form before we could install our OS (in the case of Linux, BSD and MacOS) unless ever part of the OS was contained on the physical media (as Windows and MacOS always is, but many *nix distributions, typically are held mostly on an FTP server so you get the latest release at the time you install, not when the disc was burned) and then you could boot up with no networking first and fill those details in later. Regardless, you would have no network and no internet until you provided all that guff.

So, anyone who set the internet up on their computer at that time (around 2000 ish being the change over from "maybe you got it, but probably not" to "chances are, it'll be there") will have some idea what IP address, Subnet mask, Default gateway, Primary and Secondary DNS server are all about.

For anyone too young to remember that, I will elaborate.

The IP address should uniquely identify a device on the internet / intranet. It doesn't, because that would only allow 4,294,967,293 devices attached to the internet at any one time in the entire world. (actually, when the internet was first conceived, they thought that was an impossible number, and there would never, ever, ever be that many computers in the world, never mind that many attached to the internet :lol:) So the internet, and intranets are broken down into subnets accessed via gateways, which is what the subnet mask (more commonly called "hostmask" on *nix) and gateway server is about. It basically defines which IPs are LAN IPs and which must be outside your LAN. It's compared with the IP allocated to this interface with a binary AND operation, so if your machines IP is 192.168.1.69 and your subnet mask is 255.255.255.0 then any IP from 192.168.1.0 to 192.168.1.255 is effectively within your LAN. And unless you are in a large corporation, or you want to limit your LAN below 250 odd devices, that's usually pretty much how it goes.

The "default gateway" is essentially a proxy server. Any request to an IP outside the hostmask (or subnet mask) will be directed to this "gateway" IP for routing on outside your LAN. The gateway is typically used to provide firewalling and NAT.

What? The interwebs has gnatts? No, not gnatts, NATs. Network Address Translation enables a message from IP 192.168.1.2 in your LAN to reach IP 192.168.1.2 on *my* LAN. Without it both our machines would simply be talking to them self, right? ^_^ Simply put (though, it's not that simple underneath) NAT translates LAN IPs to WAN IPs and back again.

Now. That's what DHCP works out and manages for you, (aren't you glad it's there?) but what if you *need* to take back some control to make this "static IP" for your server? Well, as I say, you can restrict the maximum, or minimum IP your DHCP server will hand out within that "hostmask" and manually give the TCP/IP stack all the details. So, using the previous example, if we told the DHCP server to allocate IPs from 192.168.1.1 - 192.168.1.250 we could manually set our server TCP/IP stack to work from the IP 192.168.1.251, and know that it will never check for an IP with the DHCP server, and never collide with another computer which the DHCP server has allocated the same IP as it is set to. (and it's still within the Subnet mask 255.255.255.0) Alternatively (and in modern literature, this is usually the preferred method) you can set the DHCP server to assign a static IP to the MAC address of the network interface of the server. Then it really doesn't matter what IP it has, so long as it's within range and always the same.

MAC who? Okay. Every device has a Machine Access Control address. This is a 12 digit hexadecimal number burned into a prom on the interface board... or, these days more often "chip". Again, originally it was considered that no two interfaces in the world or throughout history would ever have the same MAC. Meaning that they where absolutely positive that during the remaining life of planet earth, there would be considerably less than 281,474,976,710,655 network capable devices manufactured. considerably less because several of those digits where to be reserved to be unique to each manufacturer. :O: We exceeded that a long time ago, and almost every modern network interface will have some way to change it's MAC, in case of collision. (originally, that was strictly forbidden, because it could allow collision)

Once I've got an IP, why would I have to reserve it? Well, actually DHCP doesn't just allocate a new IP every time it sees a new device, and then fall over and crash the entire internet when it's seen more than 255 devices on your LAN. No, of course it doesn't. How would WiFi hotspots work then? (not that it falling over would have that serious a consistence anyway ... but it may feel that way to you if it did) DHCP only "leases" or rents out IP addresses on a per-MAC basis for X amount of time. After that time is up, the device knows it's lease has expired and it will need to re-apply to extend the lease. What happens then depends on the programming of the server. Some will allocate a new IP, others will reallocate the same IP, if the lease is re-applied for quickly enough. If the device isn't even on when the lease runs out... well, then it depends how heavily subscribed the LAN is. If the DHCP server is short of available IPs when your servers lease runs out, and it's not switched on at that time, then it will certainly loose it's IP. As unlikely as that may be to happen with your server, you'd probably rather not take the risk.

Additionally, when looking at port forwarding, or port triggering, you may find you can only forward to, or trigger from an IP which is statically assigned. This is a common security feature because if you forward port 80 (the web) from the internet to your home web server, and run WebDAV (webfolders in Microsoftees) to share your home accounts from your local NAS (Network Attached Storage device) and stream TV to your Digibox or what have you... should DHCP switch the IPs of these two devices, your Web server is no longer available to the outside world (not good) but instead, they get all the details of your personal home banking. (really, really, REALLY not good)

What's the difference between forwarding and triggering? Well forwarding ports means that connections coming in to your modem on that port will be diverted to the IP it is set to forward to. Port triggering will mean that the port is not normally open for machines on your network to broadcast on, but if that particular LAN IP tries, it will trigger the port open. So forwarding for incoming calls. (Listening ports) Triggering for outgoing calls. (Transmitting ports) :wink:
​
 
Last edited:
Back