• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Web GameLauncherEx

Skilled Illusionist
Joined
Nov 11, 2012
Messages
313
Reaction score
1
I'm currently testing out LegitLisa's gamelauncherex but I somehow can't use domain DNS Host as my IP , any help with this ?

I receive firewall error ( saying server's down ) each time I hit 'Play'.
I've tested to make sure my server is really online by switching the DNS Host name to a IP address , works perfectly.



Apparently , it's a problem with this
injector.CallExport<IPInfo>(dll, "SetIP", new IPInfo(ip));
&
[StructLayout(LayoutKind.Sequential)]
struct IPInfo
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)]
public string IP;

public IPInfo(string ip)
{
IP = ip;
}
}

Still requiring help on how to make these allow DNS Host names instead of IP
 
Last edited:
Skilled Illusionist
Joined
Aug 17, 2011
Messages
360
Reaction score
88
I don't believe in C# ip and http are translated into each other. if (example IP) try you may be missing the http. If not then "IP" is set to be just that. an IP. Why don't you want it connecting to the ip anyways? DNS/IP same thing except one links to the other through a domain.
 
Upvote 0
Skilled Illusionist
Joined
Nov 11, 2012
Messages
313
Reaction score
1
C# has that 'translated' if that's how you say it , I've tested using Vicious Redirector with my current DNS Host as mywebsite.com & it works perfectly fine. But I'd prefer using Legitlisa's release as it allows my players to go through the download page.

The pain in the butt is this part at the moment. the IPInfo(ip) is the one that doesn't allow me to use my DNS Host. Any ways to somehow change this function to allow usage of DNS Host ?
if (ip != IPAddress.Loopback.ToString())
injector.CallExport<IPInfo>(dll, "SetIP", new IPInfo(ip));

It's linked with this , so I'm not so sure which is the one stopping me from using a DNS Host , any help ? :)

public IPInfo(string ip)
{
IP = ">i've placed my website here<";
}
}
 
Upvote 0
Skilled Illusionist
Joined
Nov 11, 2012
Messages
313
Reaction score
1
Hmm , I don't really get that.
I doubt there's this same function I'm looking for in Vicious.

-Still requiring help.



Needing urgent help.
 
Upvote 0
Experienced Elementalist
Joined
Feb 10, 2008
Messages
249
Reaction score
161
C# has that 'translated' if that's how you say it , I've tested using Vicious Redirector with my current DNS Host as mywebsite.com & it works perfectly fine. But I'd prefer using Legitlisa's release as it allows my players to go through the download page.

The pain in the butt is this part at the moment. the IPInfo(ip) is the one that doesn't allow me to use my DNS Host. Any ways to somehow change this function to allow usage of DNS Host ?


It's linked with this , so I'm not so sure which is the one stopping me from using a DNS Host , any help ? :)

redirector specifically takes the IP ADDRESS no the DNS NAME. if you want to use your DNS name u need to resolve it first. check this out itll help you
 
Upvote 0
Skilled Illusionist
Joined
Nov 11, 2012
Messages
313
Reaction score
1
I'll read that up & try to get my problem fixed.
So from what I know , I've confirmed that
[StructLayout(LayoutKind.Sequential)]
struct IPInfo
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)]
string IP;

public IPInfo(string ip)
{
IP = ">inserted my ip here<";
}
}

Is what causing me not able to use the DNS Host so from you're help , I've found this in vicious redirector which seems helpful. :
public static void getIP()
{
IPHostEntry entry = Dns.GetHostEntry(ip );
if (entry.AddressList.Length > 0)
ip = entry.AddressList[0].ToString();
}

How am I suppose to merge it with the one above then ?
 
Last edited:
Upvote 0
Skilled Illusionist
Joined
Nov 11, 2012
Messages
313
Reaction score
1
Bump- Still can't figure what to do.

How do I resolve my IPInfo ?
 
Upvote 0
Elite Diviner
Joined
May 4, 2011
Messages
491
Reaction score
105
How did you end up fixing it? o-o I'm having trouble understanding what he meant


[StructLayout(LayoutKind.Sequential)]
struct IPInfo
{
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 15)]
public string IP;

public IPInfo(string ip)
{
var entry = Dns.GetHostEntry("t55.linkoc.net");
var ip = entry.AddressList[0].ToString();
var ipInfo = new IPInfo(ip);
}
}
thats what I have o;
 
Upvote 0
Back
Top