# SDL\_net: Is mine broken?

**URL:** <https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264>\
**Category:** SDL Development\
**Created:** [April 17, 2008, 1:14pm UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264 "2008-04-17T13:14:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonnyD](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/jonnyd/32/1604_2.png) [@JonnyD](https://discourse.libsdl.org/u/JonnyD)\
**Post date:** [April 17, 2008, 1:14pm UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264/1 "2008-04-17T13:14:04Z")

</div>

Hey,

I’ve been trying to get networking up on WinXP (mingw), but I’ve run into some problems. I built SDL\_net myself, so that might have something to do with it. I’m able to connect with myself using “localhost”, but connecting by IP address gives a failure. I tried with a friend and instead of failure it was crashing. So I built Sam’s chat demo to test that (on my single machine). The server outputs: Server IP: 0, 38283  
If the host field is zero, does that mean there’s a big error somewhere (probably from my build)? I can still connect on this too, using “localhost”. Does anyone have an idea or a recent WinXP build of libSDL\_net.a and SDL\_net.dll?

Jonny D\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
More immediate than e-mail? Get instant access with Windows Live Messenger.  
[http://www.windowslive.com/messenger/overview.html?ocid=TXT\_TAGLM\_WL\_Refresh\_instantaccess\_042008](http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_instantaccess_042008)

---

<div class="post-metadata">

**Author:** ![Brian\_Barrett](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/brian_barrett/32/427_2.png) [@Brian\_Barrett](https://discourse.libsdl.org/u/Brian_Barrett)\
**Post date:** [April 17, 2008, 1:24pm UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264/2 "2008-04-17T13:24:11Z")

</div>

Hi.

Have you tried the pre-built libraries on the SDL site? I’ve used them  
with mingw with no problems. [http://www.libsdl.org/projects/SDL\_net/On](http://www.libsdl.org/projects/SDL_net/On) Thu, Apr 17, 2008 at 2:14 PM, Jonathan Dearborn wrote:

> Hey,
> 
> I’ve been trying to get networking up on WinXP (mingw), but I’ve run into  
> some problems. … Does anyone have an idea or a recent WinXP build of  
> libSDL\_net.a and SDL\_net.dll?

---

<div class="post-metadata">

**Author:** ![JonnyD](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/jonnyd/32/1604_2.png) [@JonnyD](https://discourse.libsdl.org/u/JonnyD)\
**Post date:** [April 17, 2008, 1:50pm UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264/3 "2008-04-17T13:50:55Z")

</div>

Hey,

I’ve had problems when linking to SDL\_net.lib before, but it went through this time. I replaced my lib and dll with the Win32 VC8 devel files, but the same effect occurs: host = 0. I should be able to connect to myself by my IP address, right?

Jonny D\> Date: Thu, 17 Apr 2008 14:24:11 +0100

> From: brian.ripoff at [gmail.com](http://gmail.com)  
> To: sdl at [lists.libsdl.org](http://lists.libsdl.org)  
> Subject: Re: [SDL] SDL\_net: Is mine broken?
> 
> Hi.
> 
> Have you tried the pre-built libraries on the SDL site? I’ve used them  
> with mingw with no problems. [http://www.libsdl.org/projects/SDL\_net/](http://www.libsdl.org/projects/SDL_net/)
> 
> On Thu, Apr 17, 2008 at 2:14 PM, Jonathan Dearborn wrote:
> 
> > Hey,
> > 
> > I’ve been trying to get networking up on WinXP (mingw), but I’ve run into  
> > some problems. … Does anyone have an idea or a recent WinXP build of  
> > libSDL\_net.a and SDL\_net.dll?
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

* * *

Get in touch in an instant. Get Windows Live Messenger now.  
[http://www.windowslive.com/messenger/overview.html?ocid=TXT\_TAGLM\_WL\_Refresh\_getintouch\_042008](http://www.windowslive.com/messenger/overview.html?ocid=TXT_TAGLM_WL_Refresh_getintouch_042008)

---

<div class="post-metadata">

**Author:** ![slouken](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/s/ec9cab/32.png) [@slouken](https://discourse.libsdl.org/u/slouken)\
**Post date:** [April 18, 2008, 5:47am UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264/4 "2008-04-18T05:47:05Z")

</div>

> Hey,

> I’ve had problems when linking to SDL\_net.lib before, but it went through this time. I replaced my lib and dll with the Win32 VC8 devel files, but the same effect occurs: host = 0. I should be able to connect to myself by my IP address, right?

Yes, unless Windows firewall is blocking you. Also try 127.0.0.1

See ya!  
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment

---

<div class="post-metadata">

**Author:** ![JonnyD](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/jonnyd/32/1604_2.png) [@JonnyD](https://discourse.libsdl.org/u/JonnyD)\
**Post date:** [April 18, 2008, 6:36pm UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264/5 "2008-04-18T18:36:17Z")

</div>

Well, I turned off all my firewall stuff and it still doesn’t work.  
Thanks for the ideas. It does connect on 127.0.0.1… Is that just  
the loopback device? Any other ideas?

Jonny D\> To: sdl at [lists.libsdl.org](http://lists.libsdl.org)

> From: slouken at [devolution.com](http://devolution.com)  
> Date: Thu, 17 Apr 2008 22:47:05 -0700  
> Subject: Re: [SDL] SDL\_net: Is mine broken?
> 
> > Hey,
> 
> > I’ve had problems when linking to SDL\_net.lib before, but it went through this time. I replaced my lib and dll with the Win32 VC8 devel files, but the same effect occurs: host = 0. I should be able to connect to myself by my IP address, right?
> 
> Yes, unless Windows firewall is blocking you. Also try 127.0.0.1
> 
> See ya!  
> -Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

* * *

Going green? See the top 12 foods to eat organic.  
[http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A](http://green.msn.com/galleries/photos/photos.aspx?gid=164&ocid=T003MSN51N1653A)

---

<div class="post-metadata">

**Author:** ![JonnyD](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/jonnyd/32/1604_2.png) [@JonnyD](https://discourse.libsdl.org/u/JonnyD)\
**Post date:** [April 18, 2008, 6:36pm UTC](https://discourse.libsdl.org/t/sdl-net-is-mine-broken/15264/6 "2008-04-18T18:36:39Z")

</div>

Well, I turned off all my firewall stuff and it still doesn’t work. Thanks for the ideas. It does connect on 127.0.0.1… Is that just the loopback device? Any other ideas?

Jonny D\> To: sdl at [lists.libsdl.org](http://lists.libsdl.org)

> From: slouken at [devolution.com](http://devolution.com)  
> Date: Thu, 17 Apr 2008 22:47:05 -0700  
> Subject: Re: [SDL] SDL\_net: Is mine broken?
> 
> > Hey,
> 
> > I’ve had problems when linking to SDL\_net.lib before, but it went through this time. I replaced my lib and dll with the Win32 VC8 devel files, but the same effect occurs: host = 0. I should be able to connect to myself by my IP address, right?
> 
> Yes, unless Windows firewall is blocking you. Also try 127.0.0.1
> 
> See ya!  
> -Sam Lantinga, Lead Software Engineer, Blizzard Entertainment
> 
> * * *
> 
> SDL mailing list  
> SDL at [lists.libsdl.org](http://lists.libsdl.org)  
> [http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org](http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org)

* * *

Use video conversation to talk face-to-face with Windows Live Messenger.  
[http://www.windowslive.com/messenger/connect\_your\_way.html?ocid=TXT\_TAGLM\_WL\_Refresh\_messenger\_video\_042008](http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_video_042008)
