Well, not sure if this goes here.
I've been working on my project (uses world.Export() to a Main Server) i started it and worked fine, Main Server received the data as:
"test=Action=test&IP_Address=192.168.1.1&Key=Ocean+King", but the IP Address isn't the correct.
I've loged from bookmarks, shouldn't my ip be the real ip?
ID:278415
![]() Feb 17 2011, 7:18 am
|
|
![]() Feb 17 2011, 8:22 am
|
|
Depends how it's connected to you, if both servers are local, that IP is correct.
|
I don't get what you mean by local (Not a good hoster, though). But i'm using Dream Daemon for both servers.
|
Well, 192.168.0.0./16 is a local range IP address. It doesn't route over the internet, but is available for local networks to use. That is physically your PC's IP address.
|
Is there anyway to fix this? I'm using router, never had this problem.
Also, i now tryed with Modem, and world.Export() stills doesn't get the server. But it sends all correct data... |
It's a local routing thing, and the information it's provided is correct, it's just not what you want. You'd want to parse a site similar to whatismyip.com for your external address, and send that.
|
I do. I've looked my ip on whatismyip.com for external address but i still get that connection is failing on Export(). And yes, the master server is online....
|
It's not an address that makes sense locally, that's what I'm telling you. Similarly have you port forwarded for this stuff?
|
If you're using an external IP address and that address isn't local to your machine, you need to port forward. Otherwise, how does the data get to the appropriate PC inside your network when it reaches the router?
|
I did portforward. Still same. :/
Well, i'll provide a code. Since, i don't know if it's the Router or Code which is failing. var/list/connectedIPs = new |
It's your local ip assigned by your router you would have to connect to the server by typing: the address you get from whatismyip.com:port in open location. It will be very leggy.
|
That ip i showed it's my WAN Ip. Showed on Router, Whatsmyip, etc. Since if i do
http://[theserverip]:[serverport]?ping It doesn't return any error. If i do: byond://[theserverip]:[serveport]?ping Returns error.... |
I'm not sure what you are saying, nor what you are trying to do. Simple put you are getting a local connection, see here for more information: http://en.wikipedia.org/wiki/Private_network
|
I'm still not entirely sure what you're trying to do, after reading the thread.
If your problem is that you're using client/address and it's returning a 192.168 etc. address, you can use world/internet_address for the host, and continue using client/address for everybody else. (as client/address will only show the local IP for the host computer) |
Ocean King wrote:
"test=Action=test&IP_Address=192.168.1.1&Key=Ocean+King", but the IP Address isn't the correct. The 'real ip' is indeed the question here. Depending on your setup, it could be external 'as seen from sites like whatismyip.net', private/local/LAN (192.168.1.0/24), or just plain local (127.0.0.1). You can configure manual IP's, or have one assigned from modem/router via DHCP. Some routers will give their own IP address when you attempt to connect to your external. If this is causing issues (such that you might want a private/LAN IP) try forging a hostname in your hosts file, or connect to the IP directly (such as byond://192.168.1.xxx:port). That will correctly reveal your LAN IP. You can discover more about your local setup with the ipconfig command: http://support.microsoft.com/kb/314850 I hope this adequately addresses your question. |