AW: ip address of server

Florian Bogeschdorfer fb at memedia.de
Mon Feb 9 17:20:32 CST 2004


There is no way to automatically receive the server IP adress.

The only thing you can do, is:

1. Read the client ID and usually the first three numbers will be identical.

2. Try with localHost first (server could be client as well)

3. Try to connect with changing the last number (4th) of the client IP from
1 to 255 and see if the server answers

But this is a time-consuming thing.

I agree with Ken: Installting a Vserver application demands some knowledge
from the user (like the server must have a fixed IP number), so he must be
able to enter the server IP. Then store it and that's it.

Best regards, Florian 

> -----Ursprüngliche Nachricht-----
> Von: valentina-bounces at lists.macserve.net 
> [mailto:valentina-bounces at lists.macserve.net] Im Auftrag von Ken Ray
> Gesendet: Montag, 9. Februar 2004 17:07
> An: 'Valentina Developers'
> Betreff: RE: ip address of server
> 
> Chris, the only way I know of is to store it yourself after 
> the client makes the connection. Since the client needs to 
> know what IP to use to get to the server in the first place, 
> you should theoretically already
> *have* that info.
> 
> Or am I missing something?
> 
> Ken Ray
> Sons of Thunder Software
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/ 
> 
> 
> > -----Original Message-----
> > From: valentina-bounces at lists.macserve.net
> > [mailto:valentina-bounces at lists.macserve.net] On Behalf Of Chris 
> > Sheffield
> > Sent: Monday, February 09, 2004 9:50 AM
> > To: valentina at lists.macserve.net
> > Subject: ip address of server
> > 
> > 
> > Does anyone have an easy way to automatically obtain the IP 
> address of 
> > the server that's running VServer?
> > Specifically, is there a method that can be called from the 
> client to 
> > do this?  If not, is there a way to do it somehow on the server 
> > itself?
> > 
> > I'm using Revolution for this.  I'll mostly likely be using VServer 
> > embedded, and would like to be able to obtain that IP address 
> > automatically while installing VServer and save it to some kind of 
> > file that can be accessed by the clients for automatic setup.  If 
> > anyone has ideas on this, I'd be very grateful.
> > 
> > Thanks,
> > 
> > 
> > =====
> > Chris Sheffield
> > Read Naturally
> > www.readnaturally.com
> > 
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Finance: Get your refund fast by filing online. 
> http://taxes.yahoo.com/filing.html
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
> 
> 
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina



More information about the Valentina mailing list