Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 02-16-2007, 09:56 PM   #1 (permalink)
Forum Novice
 
Join Date: Nov 2006
Location: Florida
Age: 34
Posts: 100
Default 2.0 and vista

i have a server on my comp with xp pro works great..

also i have vista on this new comp here is the problem.... all the addresses im probably got something set wrong any ideas?


this is a screenshot so i dont mess anything up trying to explain lol

http://i48.photobucket.com/albums/f2...rCapture19.jpg
Darrell is offline   Reply With Quote
Old 02-16-2007, 09:58 PM   #2 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

nope they are right, they are IPv6 addresses as well as the IPv4.
mordero is offline   Reply With Quote
Old 02-16-2007, 09:59 PM   #3 (permalink)
Forum Novice
 
Join Date: Nov 2006
Location: Florida
Age: 34
Posts: 100
Default

ok but when i try and login all it does is restart the server?
Darrell is offline   Reply With Quote
Old 02-16-2007, 10:03 PM   #4 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

yep, RunUO and vista dont quite go together yet. You could try disabling IPv6, but i dunno if that will work or not (I didnt try it cause i dont see that as a real solution, only a temporary one). David started a thread about it back in november if you want to look for it for more details.
mordero is offline   Reply With Quote
Old 02-16-2007, 10:04 PM   #5 (permalink)
Forum Novice
 
Join Date: Nov 2006
Location: Florida
Age: 34
Posts: 100
Default

ok thank you very much
Darrell is offline   Reply With Quote
Old 02-16-2007, 10:06 PM   #6 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

yep, sorry i couldnt be more help
mordero is offline   Reply With Quote
Old 02-16-2007, 11:19 PM   #7 (permalink)
Forum Expert
 
WeEzL's Avatar
 
Join Date: Apr 2006
Location: The Great White North!
Age: 34
Posts: 887
Default

Last I remember, you can't disable IPv6 in Vista... Microsoft would rather developers redevelop their software to support IPv6 than provide a way of disabling IPv6 in Vista. I also seem to remember that anything found on how to disable IPV6 only disabled parts of it and not the whole.

However, if I remember correctly, and if the theory is correct, the whole RunUO not playing well with Vista thing comes about when you do an upgrade to Vista from an existing XP install. When others tried installing Vista from scratch after reformatting first, there were no problems. Again, that's only if I remember correctly.
__________________
I R GEEK!
WeEzL is offline   Reply With Quote
Old 02-16-2007, 11:34 PM   #8 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Quote:
Originally Posted by WeEzL View Post
However, if I remember correctly, and if the theory is correct, the whole RunUO not playing well with Vista thing comes about when you do an upgrade to Vista from an existing XP install. When others tried installing Vista from scratch after reformatting first, there were no problems. Again, that's only if I remember correctly.
That's what I read also, so at least there's two confirmations right or wrong
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-17-2007, 12:11 AM   #9 (permalink)
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,276
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Default

Quote:
Originally Posted by Darrell View Post
ok but when i try and login all it does is restart the server?
Hmm thats very odd tho i got Windows Vista Basic and log on ok and doesnt do no restart.
__________________
Erica is online now   Reply With Quote
Old 02-17-2007, 02:00 AM   #10 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Quote:
Originally Posted by WeEzL View Post
However, if I remember correctly, and if the theory is correct, the whole RunUO not playing well with Vista thing comes about when you do an upgrade to Vista from an existing XP install. When others tried installing Vista from scratch after reformatting first, there were no problems. Again, that's only if I remember correctly.
I can prove that wrong, I have a fresh install of Vista Ultima and I cannot connect to my server, it just restarts when i try to connect to it. From what I can figure out, RunUO is using a deprecated property that is not available for IPv6 addresses, which is causing the crash.
mordero is offline   Reply With Quote
Old 02-17-2007, 06:35 AM   #11 (permalink)
Forum Expert
 
Join Date: Aug 2003
Location: Australia
Age: 30
Posts: 270
Send a message via ICQ to big_cat Send a message via MSN to big_cat Send a message via Yahoo to big_cat
Default

Yep I'm the same Vista Ultimate,

RunUO SVN downloaded today and compiled
and same problem

here is the crash report
Code:
Server Crash Report
===================

RunUO Version 2.0, Build 2604.36716
Operating System: Microsoft Windows NT 6.0.6000.0
.NET Framework: 2.0.50727.312
Time: 17/02/2007 8:28:45 PM
Mobiles: 0
Items: 2
Exception:
System.Net.Sockets.SocketException: The attempted operation is not supported for the type of object referenced
   at System.Net.IPAddress.get_Address()
   at Server.Network.AccountLoginAck..ctor(ServerInfo[] info)
   at Server.Network.PacketHandlers.AccountLogin_ReplyAck(NetState state)
   at Server.Network.PacketHandlers.AccountLogin(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)

Clients:
- Count: 1
+ 127.0.0.1: (account = xxxxx)
big_cat is offline   Reply With Quote
Old 02-17-2007, 04:15 PM   #12 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

Yep same here, and I know why it is doing it too, just not quite how to fix it...
mordero is offline   Reply With Quote
Old 02-17-2007, 04:45 PM   #13 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

I think I did write a possible solution for that problem in the thread.
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-17-2007, 04:55 PM   #14 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Quote:
Originally Posted by noobie View Post
I think I did write a possible solution for that problem in the thread.
Which thread where?
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-17-2007, 05:02 PM   #15 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

I gave a link in that thread..

click me
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-17-2007, 05:12 PM   #16 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

yeah I know and I can get the server to completely support IPv6 and IPv4 addresses (I think), but no way to test it because the server sends its ip address as an integer to the client multiple times, but you cannot cast an IPv6 address to an integer because it is too large (You could just send the IPv4 equivalent, but thats not a true solution). The reason we are getting this crash is because for IPv4 IPAddress in the .net framework, there is an Address property
Code:
IPAddress ipv4 = new IPAddress();
ipv4.Address //returns a long number of the address
The server then casts this as an int and writes it to the stream when the client is signing in. However, this Address property is deprecated and for IPv6 Addresses, this property was never available, so when the server tries to ue this property, the exception is thrown and the server crashes.
mordero is offline   Reply With Quote
Old 02-17-2007, 05:24 PM   #17 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

I really didnt understand the problem you are describing..
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-17-2007, 06:32 PM   #18 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

IPv46 IPAddress in the .net framework dont support a property that IPv4 IPAddress do support, and so when the server tries to find this property it crashes.
mordero is offline   Reply With Quote
Old 02-17-2007, 06:39 PM   #19 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

you do understand the changes I am talking about (the code snippet in the link) should be applied on the server, right ?
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-17-2007, 06:41 PM   #20 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

yes, I know, and Ive made the changes, but they do not help the crash. What happens is the server sends the IPv4 address to the client as an integer. A IPv6 address cannot be an integer and doesnt support the method that the server uses to find this integer, this is what causes the crash.
mordero is offline   Reply With Quote
Old 02-17-2007, 06:44 PM   #21 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Basically, he needs a way to convert an IPv6 IP address to an IPv4 IP address reasonably easily.
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-17-2007, 07:12 PM   #22 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

you cannot convert IPv6 to IPv4.

I dont have runuo codes right now, so I cannot check the issue you are talking about.
but why server is sending its own ip to the client? the client is already well aware of that ip therefore it is connected to the server. are you sure about this?

anyway, since it is on the server side, it could be handled.


if you could paste the code you are talking about, I might help..
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-17-2007, 07:25 PM   #23 (permalink)
Master of the Internet
 
Join Date: Oct 2005
Age: 45
Posts: 6,283
Default

Well, there are several applications that claim you can convert IPv6 to IPv4...
__________________
Why is it that I'm never as smart as I thought I was yesterday?
My vast knowledge is only surpassed by my infinite ignorance.
<TheOutkastDev> i might have to hire an assassin to killl mal so that i can jump in front of the bullet and piss on him
Malaperth is offline   Reply With Quote
Old 02-17-2007, 07:40 PM   #24 (permalink)
Forum Expert
 
Join Date: Jul 2005
Location: Istanbul/Turkey
Age: 27
Posts: 425
Default

I think those applications convert IPv4 to IPv6, not IPv6 to IPv4.
__________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it."
noobie is offline   Reply With Quote
Old 02-17-2007, 07:45 PM   #25 (permalink)
Forum Expert
 
mordero's Avatar
 
Join Date: Nov 2003
Location: Illinois, USA
Age: 22
Posts: 2,911
Default

OK the solution!!!!!!!! (Part 1)
After much work, and much help from Zippy, Jeff, and Malaperth, we have come up with a solution!

***Removed unneeded mod**

You need a custom ServerList.cs in the distro scripts. You need to specify an IP address manually.
For me, it was:
Code:
public static readonly string Address = "192.168.1.65";
However, I am only accessing this server from within my router, so youll need to do whatever it is to make it accessable from outside and in.

See Part 2 for the rest of the solution (as only doing this step would allow connections from XP but not vista, i believe)

Last edited by mordero; 02-17-2007 at 08:32 PM.
mordero is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes