typedef struct { char ip[4]; char UNUSED[10]; unsigned short port; } et_netadr_t; printf( "%i.%i.%i.%i:%i", ((et_netadr_t *)0x165F7C8)->ip[0], ((et_netadr_t *)0x165F7C8)->ip[1], ((et_netadr_t *)0x165F7C8)->ip[2], ((et_netadr_t *)0x165F7C8)->ip[3], htons(((et_netadr_t *)0x165F7C8)->port) );