Hammerwatch Forum

Technical Support => Technical Support => Topic started by: Xyanshift on July 22, 2014, 09:23:04 PM

Title: net code acting strange
Post by: Xyanshift on July 22, 2014, 09:23:04 PM
devs ive been having problems with the netcode not working at least not well, me and my brother cant even connect to each other even when the only way we could speed up the connection between us is to hard wire our comps to each other.................. and it always returns an error
as well we cant connect to freinds and they cant connect to us.
WTF is going on?!?!?!?!?!??!
Title: Re: net code acting strange
Post by: CrusaderDeleters on July 22, 2014, 11:27:06 PM
Did you try port forwarding?
If you and your brother is using a Local Area Connection (Both of you sharing the same router), then you could just connect with your local IP's.
To figure that out, go to your command prompt (Windows key + R, and enter in "cmd"), and in there type "ipconfig".
You might have to scroll up, but look for the internet adapter that you use (whether it be Wireless LAN adapter, or an Ethernet Cable), and find "IPv4 Address". This address is your local IP.

Now that isn't even port forwarding.
Portforward (http://portforward.com) has a really great list of guides to help you porting for online play.
Just... don't forget to make your internal IP static for port forwarding to work after you restart your computer.
Title: Re: net code acting strange
Post by: shiftyBOT on July 23, 2014, 12:29:01 AM
Crusade,We use linux :D
edit:
our freind lives in another state:/
(we need to be able to have him connect throught the powers of teh intarwebz)

~shiftyBOT
Title: Re: net code acting strange
Post by: CrusaderDeleters on July 23, 2014, 03:26:19 AM
Crusade,We use linux :D
edit:
our freind lives in another state:/
(we need to be able to have him connect throught the powers of teh intarwebz)

~shiftyBOT
Port forwarding isn't a Windows-only thing.
Although about the Internal IP, that may be a different story.
Title: Re: net code acting strange
Post by: Xyanshift on July 23, 2014, 04:38:47 AM
well if we could some how port forward all the way across a couple servers it could work for all three of  us?  ???
Title: Re: net code acting strange
Post by: DivinityArcane on July 23, 2014, 08:39:37 AM
For linux you're likely going to need to add forwarding rules to the router as well as the IPTABLES of the host server (if applicable). Make sure you're using appropriate local addresses, and not public ones. Some routers get confused when you try to access your own public IP.

Alternatively, I did write a port changer (http://hammerwatch.com/forum/index.php?topic=2059.0) if needed.
Title: Re: net code acting strange
Post by: shiftyBOT on July 23, 2014, 06:43:51 PM
huh, we'll look into it, we've never done this stuff before xD

We're just modders
:P
~shiftyBOT