Hi Tommi.

Actually, I need them right from the start of the server. I have to pass 
both to another function which is downloading a file from there. Because 
"0.0.0.0" results in a dynamic IP, I cannot have a static URL to that 
content.

However, "request.getServerIp()" will probably help me a lot anyway, as 
I have the port set to an arbitrary value in the configuration of the 
server. I could use that function in some other scenarios.

What does virtual hosting mean? Could you please explain it in more 
detail? Or is there any description in the docs?

Thank you

Denis

Am 15.08.2012 22:31, schrieb Tommi Mäkitalo:
> Am 15.08.2012 18:32, schrieb Denis Loh:
>> Hi,
>>
>> I want to use tntnet for yet another VDR plugin and I was wondering how
>> I get the ip and port from the stand alone application so that I can use
>> it somewhere else in the code. I found out, that the application creates
>> listeners on every interface, but I haven't found how to obtain it.
>>
>> If this is not directly possible, is there another way to get the ip and
>> port the server is listening on?
>>
>> Thank you very much
>>
>> Denis
> Hi,
>
> you cat get the server ip using "request.getServerIp()". But
> unfortunately there is currently no way to get the port. There was never
> a need for it. Do you need it? I can implement it for the next version.
>
> What do you want to do? Why do you want to have it? Maybe virtual
> hosting is, what you are looking for.
>
> Tommi
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to