I’m trying to create a network for a game, but Norton’s is screwing me up. Norton’s prevents the line
java.net.InetAddress i = java.net.InetAddress.getLocalHost();
from running. Instead it just causes the program to freeze. However, if I disable Norton’s the line runs fine. Can somebody help me fix this so that it will work without me having to disable Norton’s every time I run the program?
I think you should be able to configure Norton to allow java.exe and javaw.exe to do outgoing connections. I’m not sure on the specifics, though.
i think that should work, but it’s generally a bad thing that you could only allow net access for all java apps, or for none.
and to the op: in your own interest, get a better firewall. i haven’t read a single test that did not bash norton firewall and norton’s “security” products in general.
Regardless of whether Norton’s a good firewall or not, you should resolve this problem somehow. Otherwise, no one with Norton Firewall will be able to use your game’s networking capabilities.
Unfortunately, I have no helpful advice about how to resolve the problem.
Fixed that for ya
Seriously, there’s nothing to “fix” - the firewall is breaking the OP’s operating system, therefore they need to remove it. Nothing to do with java.
I still think it’s something should be “fixed” by making the game able to bypass Norton Firewall. Whether it’s possible to do so is another issue.
Let’s say I programmed a game that crashed every time someone ran it at the same time as some common program - let’s say Aol Instant Messenger. It’s not a “bug” per se, but it is a compatibility problem. I don’t like Aol Instant Messenger so it wouldn’t affect me directly, but it would affect alot of potential users. Hence, I would try to fix it.
Of course, there’s a limit to how much effort you can put into resolving an issue like that.
Btw, blahblahblahh, you quoted me as saying something completely different from what I actually said.
In blahblahblahh’s defense, he was making a joke, hence the “Fixed that for ya” comment.
I do agree that if it is possible to be resolved it should be. Perhaps try passing null for the InetAddress instead to accept on all addresses would work?